Apache service logs
The Apache service log contains errors, warnings, and informational messages generated by Apache during startup, shutdown, or while running.
View the logs
The Apache service log can be viewed from within the ServerPilot dashboard or through SSH.
Log file location
The Apache service log is located at:
/var/log/apache-sp/error.log
Log file format
The format of each entry in the Apache service log is:
[DATE_TIME] [MODULE:LOG_LEVEL] [pid PROCESS_ID:tid THREAD_ID] LOG_MESSAGE
For example, Apache will generate the following log entries during daily log rotation:
[Tue Mar 04 06:25:02.215340 2025] [mpm_event:notice] [pid 16721:tid 140115384768256] AH00489: Apache/2.4.59 (Unix) OpenSSL/1.0.2g configured -- resuming normal operations[Tue Mar 04 06:25:02.215386 2025] [core:notice] [pid 16721:tid 140115384768256] AH00094: Command line: '/opt/sp/apache/bin/httpd'[Wed Mar 05 06:25:01.362895 2025] [mpm_event:notice] [pid 16721:tid 140115384768256] AH00493: SIGUSR1 received. Doing graceful restart
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. |
LOG_MESSAGE | Log message content. |
Example commands
You must be logged in as root
to view the Apache service log.
View recent Apache service log entries
Show the most recent 100 lines in the Apache service log.
sudo tail -n 100 /var/log/apache-sp/error.log