cPanel has a vast amount of log files which can be reviewed when errors happen. Whether you’re seeing an Internal Server Error or a blank page. The cPanel log files will contain all of the information needed to diagnose and fix most issues. Here we are going to point out the cPanel log files mostly used and show you how to find information in these files. If you need log files related to email like send and receive information and Exim then you can check our Exim Log Files post which details all the information related to Exim.
Apache Log File
Apache will log any information related to your HTTP service so. You can search the file for specific information using the grep command below. Replace [USERNAME] with the cPanel user having issues to bring back a full list of log incidents for that user.
grep [USERNAME] /var/log/apache2/error_log
cPanel Access Log
The cPanel Access Log will keep a record of login and logout actions by cPanel users and WHM users. The file writes a new entry on each line in the format [IP] [DATE&TIME] [ACTION]. The Access log file can be found at;
/usr/local/cpanel/logs/access_log.
cPanel Error Log
Although the cPanel Error Log contains errors related to cPanel. If a user removed a MySQL database. This will be written to the cPanel Error Log. Other errors related to cPanel and WHM will be found in this file located at
/usr/local/cpanel/logs/error_log
cPanel Backup Log Files
cPanel will write any information related to backups to the cpbackup directory. The cpbackup log will only record information about backups. The directory will contain a list of recent backup jobs in the format 1519178402.log, 151987402.log. Each file is a separate backup process. The files are located at
/usr/local/cpanel/logs/cpbackup
These are a few of the most common logs for cPanel and WHM. You can find a full list of log files in the cPanel documentation. Find out how to Search Linux log files.
How was this article?
You might also like
More from cPanel
How To Mass Update SPF Records On cPanel Servers
Mass Update SPF Records On cPanel ServersUsually, when you migrate accounts using the Transfer Tool in WHM the DNS records …
Top Tips To Keep Emails Out Of Spam Folders
With Email being such a vital utility it's important that your emails get to where they need to be. Keeping …
How To Install Imunify360 cPanel & DirectAdmin Servers
How To Install Imunify360 cPanel & DirectAdmin ServersImunify360 is a fantastic tool to have in your server toolkit. It's a …
1 Comment
[…] Understanding The Exim Log Files And Their LocationsOn cPanel servers the default mail program is Exim. Exim will handle anything to do with mail delivery from sending to receiving and everything Exim does is written to four log files. These log files can be used to diagnose almost any issue to do with Exim and the sending plus receiving of email on your server. If you are looking for cPanel log files these can be found here […]