Skip to content

Apache app error logs

An app’s Apache error log contains any errors and warnings from Apache while serving requests.

View the logs

An app’s Apache 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 Apache error log is:

log/APPNAME/APPNAME_apache.error.log

where APPNAME is the name of the app.

Log file format

[DATE_TIME] [MODULE:LOG_LEVEL] [pid PROCESS_ID:tid THREAD_ID] [client IP_ADDRESS] LOG_MESSAGE

For example:

[Thu Mar 06 15:01:27.248409 2025] [core:alert] [pid 5667:tid 139635493631744] [client 203.0.113.0:0] /srv/users/SYSUSER/apps/APPNAME/public/.htaccess: RewriteRule: bad argument line 'example_invalid_value'

The fields in each log entry are described in the following table.

FieldDescription
DATE_TIMEDate and time the request was received.
MODULEApache module that generated the log entry.
LOG_LEVELThe priority of the log entry. See the Apache LogLevel documentation for possible values.
PROCESS_IDApache process ID that handled the request.
THREAD_IDApache thread ID that handled the request.
IP_ADDRESSIP address of the client that made the request.
LOG_MESSAGELog message content.

Example commands

View recent Apache error log entries

Show the most recent 100 lines in an app’s Apache error log.

Terminal window
tail -n 100 log/APPNAME/APPNAME_apache.error.log