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.
Field | Description |
---|---|
DATE_TIME | Date and time the request was received. |
MODULE | Apache module that generated the log entry. |
LOG_LEVEL | The priority of the log entry. See the Apache LogLevel documentation for possible values. |
PROCESS_ID | Apache process ID that handled the request. |
THREAD_ID | Apache thread ID that handled the request. |
IP_ADDRESS | IP address of the client that made the request. |
LOG_MESSAGE | Log message content. |
Example commands
View recent Apache error log entries
Show the most recent 100 lines in an app’s Apache error log.
tail -n 100 log/APPNAME/APPNAME_apache.error.log