From Hostek.com Wiki
This document describes the cPanel Apache logging details and issues for Linux VPS.
Apache LogsUser domain logs:
/usr/local/apache/logs/error_logGeneral access log:
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 LoggingPiped 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
- Log into WHM
- Go to Service Configuration > Apache Configuration > Piped Log Configuration
- Enable piped Apache logging, save it and let WHM rebuild the configuration