Log Files

Logs logs logs, some are good some are bad. Logs logs logs - Get great advice from your Tech Dad!

cPanel / WHM Location of Log Files

Please select one of the Options below based on your needs:

Description

Access logs and user actions
Account transfers and misc. logs
Auditing log (account creations, deletions, etc)
Backup logs
Brute force protection (cphulkd) log
Cpanel dnsadmin dns clustering daemon
Cpanel taskqueue processing daemon
DBmapping
EasyApache build logs
Error log
Installation log
License updates and errors
Locale database modifications
Login errors (CPSRVD)
Horde
RoundCube
SquirrelMail
Panic log
Per account bandwidth history (Cached)
Per account bandwidth history (Human Readable)
Service status logs
Tailwatch driver tailwatchd log
Update analysis reporting
Update (UPCP) log
WebDisk (CPDAVD)
Website statistics log
This file contains the PHP-FPM implementation's errors.
This file contains WHM's API tokens logs.
This file contains the users PHP-FPM error logs.
This file contains the Greylisting daemon's logs

Location

/usr/local/cpanel/logs/access_log
/var/cpanel/logs
/var/cpanel/accounting.log
/usr/local/cpanel/logs/cpbackup
/usr/local/cpanel/logs/cphulkd.log
/usr/local/cpanel/logs/dnsadmin_log
/usr/local/cpanel/logs/queueprocd.log
/usr/local/cpanel/logs/setupdbmap_log
/usr/local/cpanel/logs/easy/apache/
/usr/local/cpanel/logs/error_log
/var/log/cpanel
/usr/local/cpanel/logs/license_log
/usr/local/cpanel/logs/build_locale_database_log
/usr/local/cpanel/logs/login_log
/var/cpanel/horde/log/
/var/cpanel/roundcube/log/
/var/cpanel/squirrelmail/
/usr/local/cpanel/logs/panic_log
/var/cpanel/bandwidth.cache/{USERNAME}
/var/cpanel/bandwidth/{USERNAME}
/var/log/chkservd.log
/usr/local/cpanel/logs/tailwatch_log
/usr/local/cpanel/logs/updated_analysis/{TIMESTAMP}.log
/var/cpanel/updatelogs/updated.{TIMESTAMP}.log
/usr/local/cpanel/logs/cpdavd_error_log
/usr/local/cpanel/logs/stats_log
"/var/cpanel/php-fpm/USER/logs/error.log"
"/usr/local/cpanel/logs/api_tokens_log"
"/var/cpanel/php-fpm/USER/logs/error.log"
"/usr/local/cpanel/logs/cpgreylistd.log"

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi.

Description

Access logs and user actions

Location

/usr/local/cpanel/logs/access_log

Description

Apache restarts done through cPanel and WHM
Domain access logs
Domain access logs for Easy Apache 4
Processing of log splitting
suPHP audit log
Web server and CGI application error log

Location

/usr/local/cpanel/logs/safeapcherestart_log
/usr/local/apache/domlogs/{DOMAIN}
"/etc/apache2/logs/domlogs"
/usr/local/cpanel/logs/splitlogs_log
usr/local/apache/logs/suphp_log
/usr/local/apache/logs/error_log

Description

Backups
Backup Transporter

Location

/usr/local/cpanel/logs/cpbackup/{##########}.log
/usr/local/cpanel/logs/cpbackup_transporter.log

Description

Delivery and receipt log
Incoming mail queue
Log of messages rejected based on ACLS or other policies
Unexpected/Fatal error log
IMAP, POP login attempts, transactions, fatal errors and spam scoring
Mailman

Location

/var/log/exim_mainlog
/var/spool/exim/input/
/var/log/exim_rejectlog
/var/log/exim_paniclog
/var/log/maillog & /var/log/messages
/usr/local/cpanel/3rdparty/mailmain/logs

Description

MySQL error log
MySQL slow query log (if enabled in my.cnf)

Location

/var/lib/mysql/{SERVER_NAME}.err
/var/log/slowqueries

Description

check if the files were deleted using FTP
check if the files were deleted using file manager
check if the files were deleted using shell access

Location

/var/lib/mysql/{SERVER_NAME}.err
/var/log/slowqueries
history

"Has my cron job even ran?"

Thats a good question! Lets find out shall we.

First we wanr to connect to your server VIA SSH. If you dont know how to do this Check out "this link"

Once connected we want to run the following command based on your Cron Job "script name" - For this example I am going to use the "wp-cron.php" file which is included withWordPress - afterall look at the site name..

grep "wp-cron.php" /var/log/cron

Here’s is a sample output of what shall return :

MONTH DATE TIME:OF:DAY SERVERNAME CROND[52168]: (cPanel-User) CMD (wget -q -O - https://your-site-url-here.ext/wp-cron.php)
MONTH DATE TIME:OF:DAY SERVERNAME CROND[52178]: (cPanel-User2) CMD (wget -q -O - https://another-site-url-here.ext/wp-cron.php)
MONTH DATE TIME:OF:DAY SERVERNAME CROND[52173]: (cPanel-User3) CMD (wget -q -O - https://your-site-url2-here.ext/wp-cron.php)
MONTH DATE TIME:OF:DAY SERVERNAME CROND[52175]: (cPanel-User4) CMD (wget -q -O - https://their-site-url-here.ext/wp-cron.php)
MONTH DATE TIME:OF:DAY SERVERNAME CROND[52184]: (cPanel-User5) CMD (wget -q -O - https://another-site-here.ext/wp-cron.php)
MONTH DATE TIME:OF:DAY SERVERNAME CROND[52170]: (cPanel-User6) CMD (wget -q -O - https://that-site.ext/wp-cron.php)


Looking at the results above we can see IF the Cron Started - (if its in the list it did start), then we can see what Time the Crons Started, The Server Name,  Cron ID, For which account the cron ran for, The Cron Job itself, and finally the Cron Location itself.

Hopefully you found this of use and it helps you to track IF your Crons Jobs ran OR perhaps helps to troubleshoot an issue with Cron Jobs or Tasks running too frequently.  

Its My Wiki, for you, for me and for them! Want to contribute, contact me.

2017 Ⓒ
Bitches