Difference between revisions of "Apache Logging"

From Hostek.com Wiki
Jump to: navigation, search
(Created page with "__FORCETOC__ This document describes the cPanel Apache logging details and issues for Linux VPS. ==Apache Logs== '''User domain logs:''' <pre>/usr/local/apache/domlogs/</pre>...")
 
 
Line 8: Line 8:
 
'''suPHP log:''' <pre>/usr/local/apache/logs/suphp_log</pre>
 
'''suPHP log:''' <pre>/usr/local/apache/logs/suphp_log</pre>
 
'''suExec log:''' <pre>/usr/local/apache/logs/suexec_log</pre>
 
'''suExec log:''' <pre>/usr/local/apache/logs/suexec_log</pre>
 +
'''Mail Log:''' <pre>/var/log/maillog</pre>
 +
 +
==Checking Mail Logs==
 +
To check the mail logs on your Linux/cPanel VPS you can log in via SSH and run the following command:
 +
 +
<pre>
 +
grep yourdomainnamehere.com /var/log/exim_mainlog
 +
</pre>
  
 
==Piped Logging==
 
==Piped Logging==

Latest revision as of 01:17, 22 April 2013

This document describes the cPanel Apache logging details and issues for Linux VPS.

Apache Logs

User domain logs:
/usr/local/apache/domlogs/
Error log:
/usr/local/apache/logs/error_log
General access log:
/usr/local/apache/logs/access_log
suPHP log:
/usr/local/apache/logs/suphp_log
suExec log:
/usr/local/apache/logs/suexec_log
Mail Log:
/var/log/maillog

Checking Mail Logs

To check the mail logs on your Linux/cPanel VPS you can log in via SSH and run the following command:

grep yourdomainnamehere.com /var/log/exim_mainlog

Piped Logging

Piped logging is by default disabled. If your Apache processes are using up a lot of memory you could reduce that by enabling piped logging. When piped logging is not enabled, Apache has to be restarted every time the logs are rotated. When this happens you will see entries like this in the error_log:
[Tue Apr 09 12:06:23 2013] [notice] Graceful restart requested, doing restart
.

Enabling piped logging

  1. Log into WHM
  2. Go to Service Configuration > Apache Configuration > Piped Log Configuration
  3. Enable piped Apache logging, save it and let WHM rebuild the configuration