The cPanel servers keep their log files in specific locations independent of what version of cPanel installed on them. This feature is very helpful when there is a need to check the log files regarding different services running on the cPanel server.
As we all know, Apache is the typical web-server that used by the cPanel. The various log files by Apache are shown below.
The access log of apache has the information about all the http requests to the hostname of the server or requests directed to the server’s IP address, also sites that are redirected to the server but not hosted it.
All the apache server errors are logged in this loaction.
The domlogs contains log files of each site hosted on the server. Each log files in this folder have fully qualified domain names, for example : yourdomain.com, nixlinux.com etc.
The cPanel log files are located in the directory ‘logs’ and the path is /usr/local/cpanel/logs
This access_log contains all traffic to WHM, cPanel, and webmail over http
All the errors that occur whan accessing a cpanel website via http/https are logged in this folder.
Exim is an MTA which stands for Mail Transfer Agent, so the cPanel uses Exim to send out mails from the server. It handles all the mail related operations related to the server both incoming and outgoing. Its important log files are
It contains the logs of mail transactions perform by the server, incoming as well as outgoing mail operations.
The exim_rejectlog contains all connection attempts that were denied. This information is also logged in the exim_mainlog.
The FTP log files are normally coming under the systemside messages log file, all FTP transactions are written in these messages file.
These are the most common log file locations of a cPanel server.