WordPress Developer & Linux Administrator

Log file locations on a cPanel web server

cPanel is the largest web hosting control panel in the world. Learning where each of the cPanel log file locations are can be an indispensable resource when trying to troubleshoot an issue with your cPanel web server. Following is a list of log file locations for cPanel.

cPanel, WHM & Webmail

Login Attempts to cpsrvd

/usr/local/cpanel/logs/login_log

Account Transfers & Misc. Logs

/var/cpanel/logs

Per-Account Bandwidth History Human Readable

/var/cpanel/bandwidth/(USERNAME)

Per-Account Bandwidth History – Cached

/var/cpanel/bandwidth.cache/(USERNAME)

Service Status Logs

/var/log/chkservd.log

Error Log for cpsrvd

/usr/local/cpanel/logs/error_log

Panic Log for cpsrvd

/usr/local/cpanel/logs/panic_log

Backup Logs

/usr/local/cpanel/logs/cpbackup

Update (UPCP) Log

/var/cpanel/updatelogs/update-(TIMESTAMP).log

Mailman Logs

/usr/local/cpanel/3rdparty/mailman/logs

Auditing Log (Account Creations, Deletions, etc.)

/var/cpanel/accounting.log

Access Log & User Actions in cpsrvd

/usr/local/cpanel/logs/access_log

Website Statistics Logs

/usr/local/cpanel/logs/stats_log

Logs for Specific Webmail Applications

SquirrelMail

/var/cpanel/squirrelmail

RoundCube

/var/cpanel/roundcube/log

Horde

/var/cpanel/horde/log

Other cPanel log locations

License Updates & Errors

/usr/local/cpanel/logs/license_log

Brute Force Protection (cPHulkD) Log

/usr/local/cpanel/logs/cphulkd.log

WebDisk (cpdavd) Log

/usr/local/cpanel/logs/cpdavd_error_log

Tailwatch Driver (tailwatchd) Log

/usr/local/cpanel/logs/tailwatch_log
/usr/local/cpanel/logs/tailwatchd_log

EasyApache Build Logs

/usr/local/cpanel/logs/easy/apache/

Installation Log

/var/log/cpanel*install*

MySQL

General Information & Errors

/var/lib/mysql/(HOSTNAME).err
/val/log/mysqld.log

FTP (Pure-FTPD, Pro-FTPD)

Login Attempts & General Info

/var/log/messages

FTP Transfer Log

/var/log/xferlog is a symbolic link to /usr/local/apache/domlogs/

Mail Retrieval & Spam Protection (Courier, Dovecot, SpamAssassin)

IMAP, POP Login Attempts, Transactions, Fatal Errors & Spam Scoring

/var/log/maillog
/var/log/messages

Mail Delivery (Exim)

Unexpected/Fatal Error Log

/var/log/exim_paniclog (Linux)
/var/log/exim/paniclog (FreeBSD)

Incoming Mail Queue

/var/spool/exim/input

Log of Messages Rejected Based on ACLs or Other Policies

/var/log/exim_rejectlog (Linux)
/var/log/exim/rejectlog (FreeBSD)

Delivery & Receipt Log

/var/log/exim_mainlog (Linux)
/var/log/exim/mainlog (FreeBSD)

Named (BIND)

Log

/var/log/messages

NSD

Log

/var/log/messages

SSHD

SSH Log

/var/log/messages

Web Server (Apache/httpd)

Domain Access Logs

/usr/local/apache/domlogs/(DOMAIN)

Web Server & CGI Application Error Log

/usr/local/apache/logs/error_log

SuExec Audit Log

/usr/local/apache/logs/suexec_log

SuPHP Audit Log

/usr/local/apache/logs/suphp_log

Top Memory & CPU Consumers (dcpumon)

Top Processes Consuming CPU & Memory

/var/log/dcpumon/(YEAR)/(MONTH)/(DAY)

To Sum It Up

This should be everything (or at least most of it). If you feel one or more of these are incorrect, please consider letting me know so that I may update this post for others viewing it. Thank you!

Categories: cPanelTags: ,

Comments

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