Skip to content

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.

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.
LOG_MESSAGELog 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.

Terminal window
sudo tail -n 100 /var/log/apache-sp/error.log