Articles

Where to Find Your Log Files

When things go wrong with your apps, looking through your log files is the first step to troubleshooting your problems.

The most common logs to examine are your app's Nginx, Apache, and PHP logs, which will likely show details about any errors:

Nginx Access Log

/srv/users/serverpilot/log/APPNAME/APPNAME_nginx.access.log

Nginx Error Log

/srv/users/serverpilot/log/APPNAME/APPNAME_nginx.error.log

Apache Access Log

/srv/users/serverpilot/log/APPNAME/APPNAME_apache.access.log

Apache Error Log

/srv/users/serverpilot/log/APPNAME/APPNAME_apache.error.log

PHP Access Log

/srv/users/serverpilot/log/APPNAME/APPNAME_phpX.Y.access.log

PHP Error Log

/srv/users/serverpilot/log/APPNAME/APPNAME_phpX.Y.error.log

PHP Slow Request Log

/srv/users/serverpilot/log/APPNAME/APPNAME_phpX.Y.slow.log

Remember to replace serverpilot with the system user that owns your app, APPNAME with the name of your app, and X.Y with your app's PHP version.


Last updated: May 23, 2017