Skip to content

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

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