Table of Contents
cPanel is a trendy brand and also the most used open-source platform in the web hosting industry.
It is the best tool for managing a website that includes easy configuration, monitoring, and protection of servers and sites in a minute.
Further, it consists of numerous logs that can be useful for experienced and beginners.
Similarly, this article will help you learn and understand the location of all the logs and files in cPanel.
cPanel Log files
1. Access logs and user actions :- /usr/local/cpanel/logs/access_log
2. Account transfers and misc. logs :- /var/cpanel/logs
3. Auditing log (account creations, deletions, etc) :- /var/cpanel/accounting.log
4. Backup logs :- /usr/local/cpanel/logs/cpbackup
5. Brute force protection (cphulkd) log :- /usr/local/cpanel/logs/cphulkd.log
6. Cpanel dnsadmin dns clustering daemon :- /usr/local/cpanel/logs/dnsadmin_log
7. Cpanel taskqueue processing daemon ;- /usr/local/cpanel/logs/queueprocd.log
8.DBmapping :- /usr/local/cpanel/logs/setupdbmap_log
9.EasyApache build logs :- /usr/local/cpanel/logs/easy/apache/
10.Error log :- /usr/local/cpanel/logs/error_log
11.Installation log :- /var/log/cpanel
12.License updates and errors :- /usr/local/cpanel/logs/license_log
13.Locale database modifications :- /usr/local/cpanel/logs/build_locale_database_log
14.Login errors (CPSRVD) :- /usr/local/cpanel/logs/login_log
15.Horde :- /var/cpanel/horde/log/
Also Read: Beginners Guide: Top 12 Common Website Errors that can be learned
16.RoundCube :- /var/cpanel/roundcube/log/
17.SquirrelMail:- /var/cpanel/squirrelmail/
18.Panic log :- /usr/local/cpanel/logs/panic_log
19.Per account bandwidth history (Cached) :- /var/cpanel/bandwidth.cache/{USERNAME}
20.Per account bandwidth history (Human Readable) :- /var/cpanel/bandwidth/{USERNAME}
21.Service status logs :- /var/log/chkservd.log
22.Tailwatch driver tailwatchd log :- /usr/local/cpanel/logs/tailwatch_log
23.Update analysis reporting :- /usr/local/cpanel/logs/updated_analysis/{TIMESTAMP}.log
24.Update (UPCP) log :- /var/cpanel/updatelogs/updated.{TIMESTAMP}.log
25.WebDisk (CPDAVD) :- /usr/local/cpanel/logs/cpdavd_error_log
26.Website statistics log :- /usr/local/cpanel/logs/stats_log
Related: cPanel Announces Hike in Licensing Price From December 2022
cPanel Access log
1.Access logs and user actions :- /usr/local/cpanel/logs/access_log
cPanel Apache log
1.Apache restarts done through cPanel and WHM :- /usr/local/cpanel/logs/safeapcherestart_log
2.Domain access logs :- /usr/local/apache/domlogs/{DOMAIN}
3.Processing of log splitting :- /usr/local/cpanel/logs/splitlogs_log
4.suPHP audit log :- /usr/local/apache/logs/suphp_log
5.Web server and CGI application error log :- /usr/local/apache/logs/error_log
Also Read: Why Dedicated Hosting is the Best Option for Hosting a Website?
cPanel Email log
1.Delivery and receipt log :- /var/log/exim_mainlog
2.Incoming mail queue :- /var/spool/exim/input/
3.Log of messages rejected based on ACLS or other policies :- /var/log/exim_rejectlog
4.Unexpected/Fatal error log :- /var/log/exim_paniclog
5.IMAP, POP login attempts, transactions, fatal errors and spam scoring :- /var/log/maillog or /var/log/messages
6.Mailman :- /usr/local/cpanel/3rdparty/mailmain/logs
FTP log
1.FTP Files log :- /usr/local/apache/domlogs/ftpxferlog
2.FTP Directory log :- /usr/local/apache/domlogs
MySQL log
1.MySQL error log :- /var/lib/mysql/{SERVER_NAME}.err
2.MySQL slow query log (if enabled in my.cnf) :- /var/log/slowqueries
Also Read: How To Fix The Error “A DNS Entry for The Domain Existence”
NGINX
Note: Ownership must be ‘nginx:nginx’ for cache path.
1.NGINX cache:- /var/nginx/cache
2.NGINX access log :- /var/log/nginx/access.log
3.NGINX error log:- /var/log/nginx/error.log
cPanel Cache Manager: some web hosting plans also include the cPanel Cache Manager