PHP app error logs
An app’s PHP error log contains any errors, warnings, and notices that were issued either by PHP or by the app’s code while executing requests.
View the logs
An app’s PHP error logs can be viewed from within the ServerPilot dashboard or through SSH.
Log file location
Relative to the home directory of the app’s system user, the path to an app’s PHP error log is:
log/APPNAME/APPNAME_php8.4.error.log
log/APPNAME/APPNAME_php8.3.error.log
log/APPNAME/APPNAME_php8.2.error.log
log/APPNAME/APPNAME_php8.1.error.log
log/APPNAME/APPNAME_php8.0.error.log
log/APPNAME/APPNAME_php7.4.error.log
log/APPNAME/APPNAME_php7.3.error.log
log/APPNAME/APPNAME_php7.2.error.log
log/APPNAME/APPNAME_php7.1.error.log
log/APPNAME/APPNAME_php7.0.error.log
log/APPNAME/APPNAME_php5.6.error.log
where APPNAME
is the name of the app.
Log file format
The format of entries in an app’s PHP error log varies based on the type of log message. Some log entries may span multiple lines.
[04-Mar-2025 13:36:41 UTC] PHP Warning: Invalid argument supplied for foreach() in /srv/users/SYSUSER/apps/APPNAME/public/example.php on line 123