Home / Control Panel / cPanel Log Files Location

cPanel Log Files Location

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.

 Apache

As we all know, Apache is the typical web-server that used by the cPanel.  The  various log files by Apache are shown below.

  1.      /usr/local/apache/logs/access_log

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.

  1.   /usr/local/apache/logs/error_log

All the apache server errors are logged in this loaction.

  1.  /usr/local/apache/domlogs

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.

cPanel

The cPanel log files are located in the directory ‘logs’ and the path is /usr/local/cpanel/logs

  1. /usr/local/cpanel/logs/access_log

This access_log contains all traffic to WHM, cPanel, and webmail over http

2. /usr/local/cpanel/logs/error_log

All the errors that occur whan accessing a cpanel website via http/https are logged in this folder.

Exim

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

1. /var/log/exim_mainlog

It contains the logs of mail transactions perform by the server, incoming as well as outgoing mail operations.

  1. /var/log/exim_rejectlog

The exim_rejectlog contains all connection attempts that were denied.  This information is also logged in the exim_mainlog.

FTP 

/var/log/messages

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.

🙂

Jishnu KS
Latest posts by Jishnu KS (see all)

Leave a Reply

Your email address will not be published. Required fields are marked *

Social Media Auto Publish Powered By : XYZScripts.com