How do I resolve a ServerPilot 503 error?
When I try to load my page I see the following error:
Service Unavailable PHP did not respond properly to the request. As a result, Apache considers the PHP-FPM service to be unavailable. Detailed information about this error is available in the app's Apache error log at: /srv/users/SYSUSER/log/APPNAME/APPNAME_apache.error.log The root cause of this error is often slow PHP code. You should disable any plugins the app is using and check the app's PHP error log and PHP slow request log located at: /srv/users/SYSUSER/log/APPNAME/APPNAME_phpX.Y.error.log /srv/users/SYSUSER/log/APPNAME/APPNAME_phpX.Y.slow.log
I built my page using ServerPilot and am hosting it on Linode.
It looks like the main issue is with the PHP script running on your Linode. The best bet for the specific error is going to be checking
/srv/users/SYSUSER/log/APPNAME/APPNAME_apache.error.log on the Linode. That should give you the specific error output you can then trace back to a specific string of PHP.
If you check
/srv/users/SYSUSER/log/APPNAME/APPNAME_phpX.Y.slow.log you might also find some additional, useful information. In those log names, "X.Y" is the version of PHP your app uses, for example "5.7".
One quick fix may be to restart PHP on the Linode via an SSH session. The command for that would be
sudo service phpX.Y-fpm-sp restart Again, "X.Y" would be the version number. You can check the version number of your PHP by running
php --version or
If you you have any questions about the specific errors you see from the logs, please feel free to share them as a response and we may be able to assist you in diagnosing this issue further!