All is OK except when I click on Get Warm Spare Token I receive the following error message: The Requested URL /admin/api/api/token was not found on this server.
If I try and browse to http:///admin/api/api/ I get a “Not Found - The requested URL /admin/api/api/ was not found on this server.”
Looking in the directory /var/www/html/admin/api I only see api.php and no sub api folder.
Where am I going wrong?
If I run the warm spare backup job on the Primary, the backup tar is created and is successfully copied over to the second server via SSH, however, of course, the API call doesn’t fire so the backup is not restored on the destination warm spare server.
I’ve got to the bottom of this! Within the Apache config, I have some access restrictions preventing access to the FreePBX and FOP2 admin pages. This configuration had AllowOverride None which meant the FreePBX .htaccess were being ignore. I removed that line, restarted apache and then the api started working!
I’ve kicked off the Warm Spare Backup/Restore job on the Primary PBX and at the bottom of the log, I get the Restorestatus : Restore Done message. Although the config of the warm spare still hasn’t updated, this is a large PBX so its probably still restoring on the second box.