Bobcares

cPanel logs locations for Web, Mail, FTP, WHM and MySQL services

by | Jan 8, 2015

cPanel logs provide a goldmine of information to quickly resolve various customer issues and server errors.

Here’s a list of the cPanel logs most commonly used by our expert server administrators, and the commonly sought information in them.

cPanel mail logs – SMTP (Exim), POP/IMAP (Courier/Dovecot) and Webmail (Horde/RoundCube/Squirrelmail)

 

Incoming and outgoing mail log /var/log/exim_mainlog – Find out what happened to an email sent to an outside server, or one that came into this server.
POP or IMAP login/transaction records /var/log/maillog – Find out when a mailbox was accessed, from which IP, and if it was successful.
Anti-spam logs (eg. SpamAssassin) /var/log/maillog – Find out if a mail was tagged as spam, and the reason for it.
Mails rejected by Exim SMTP sever /var/log/exim_rejectlog – Find out if a mail was rejected at connection level due to an Exim security policy.
SMTP/POP/IMAP server crash logs /var/log/messages,
/var/log/maillog,
/var/log/exim_paniclog – Find out why Exim/Courier/Dovecot servers crashed.
Mailman logs /usr/local/cpanel/3rdparty/mailmain/logs/* – Logs under this directory shows what happened to various mailing lists.
RoundCube delivery and error logs /var/cpanel/roundcube/log/* – Logs under this directory shows mail delivery details and RoundCube access errors.
Horde error logs /var/cpanel/horde/log/* – Logs under this directory show Horde errors.
SquirrelMail logs /var/cpanel/squirrelmail/* – Logs related to SquirrelMail errors.

 

See how our cPanel server experts help you!

cPanel web server logs – Apache

 

Web site access logs /usr/local/apache/domlogs/[DOMAIN_NAME] – Find out which IP accessed the site at a given time, and the status of access.
Web site and server error log /usr/local/apache/logs/error_log – Details of error returned in the web site.
Mod Security error log /usr/local/apache/logs/modsec_audit.log – Details of the mod_security deny error.
SuPHP audit log /usr/local/apache/logs/suphp_log – Find out under which user ownership a script was executed.
Apache restarts through cPanel/WHM /usr/local/cpanel/logs/safeapacherestart_log – Find out at what all times Apache was restarted through WHM.

 

cPanel FTP logs – ProFTPd/PureFTPd

 

File upload logs /usr/local/apache/domlogs/ftp.[DOMAIN_NAME]-ftp_log – Find out which IP uploaded the files, under which user ownership, and status of upload.

 

cPanel/WHM services log

 

Brute force protection log /usr/local/cpanel/logs/cphulkd.log – Check if an IP was blocked by cPHulkd.
Login failures on all cPanel/Webmail services /usr/local/cpanel/logs/login_log – Find out at what all times a user was unable to login to cPanel/Webmail services.
User logins and activity log /usr/local/cpanel/logs/access_log – Find out what a user did after logging into cPanel. For eg. what did they upload through file manager.
Accounts audit log /var/cpanel/accounting.log – See the changes to accounts like creation, owner change, deletion, etc.
Backup logs /usr/local/cpanel/logs/cpbackup – See if an account was successfully backed up and when.
Web statistics update log /usr/local/cpanel/logs/stats_log – See if statistics were processed for a domain.
cPanel license update logs /usr/local/cpanel/logs/license_log – Find if license update had any errors.
Service status logs /var/log/chkservd.log – Find at what all times various services were responding.
Tailwatch daemon log /usr/local/cpanel/logs/tailwatchd_log – Trace any errors related to Tailwatch daemon’s working.
WebDisk logs /usr/local/cpanel/logs/cpdavd_error_log – Trace issues related to Web Disk daemon functioning.
Account bandwidth usage /var/cpanel/bandwidth/[DOMAIN_NAME] – See the history of bandwidth usage for a given domain.
cPanel error log /usr/local/cpanel/logs/error_log – Trace reasons for errors returned by cPanel interfaces.
cPanel fatal error log /usr/local/cpanel/logs/panic_log – Trace reasons for cPanel service crashes.
cPanel update log /var/cpanel/updatelogs/* – Trace issues related to cPanel updates.
EasyApache installation logs /usr/local/cpanel/logs/easy/apache/* – Cross verify errors seen in Apache with rebuild times.
cPanel installation log /var/log/cpanel – Trace issues noted in cPanel installation.

 

[ Take care of your customers, before your competitors do. Get world-class support specialists to delight your customers. ]

Important system and 3rd party tools logs

 

Cron server log /var/log/cron – Find out if a cron ran as per schedule.
Default system log file /var/log/messages – Most system errors and events will be logged here.
LFD firewall log (if CSF/LFD is installed) /var/log/lfd.log – Find out why an IP was blocked.
Maldetect logs (if LMD is installed) /usr/local/maldetect/event_log – Find out what malware was detected, or why a file upload failed.
Server authentication logs /var/log/secure – Find out who all tried to login to the server, and from which all IPs.
Server update log /var/log/yum.log – Find out what all packages were updated, and when.

 

MySQL log

 

MySQL error log /var/lib/mysql/[SERVER_NAME].err – Find out what caused a database server crash.
MySQL slow query log /var/log/slowqueries – Find out which database and user has un-optimized queries.

 

Listed above are just the most common files we refer in day-to-day troubleshooting. If you need assistance in fixing any specific issue in your server, just drop us a line.

 

GET 24 HOURS PHONE SUPPORT SERVICES

Use Bobcares for your phone support services. Ensure 24/7 coverage for your customers!

CONTACT US FOR 24/7 PHONE SUPPORT PLANS

0 Comments

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF