How to Find cPanel and System Log File's Location on CentOS 7

How to Find cPanel and System Log File's Location on CentOS 7

Introduction

Have you ever experienced problems with your VPS server and tried to investigate the cause? It is a daunting task especially if you do not know the location of the specific log file. There is always a complete collection of log files presented for each review and identifying the exact location of these files can simplify your task by a great deal.

This guide is written to help you identify the location of cPanel and system log files with ease. The directories and file paths included in the article show unaltered configurations on RHEL, CeNTos, CloudLinux, and Amazon Linux

General

PathDescription
/var/log/secureThis is the file containing SSH daemon (SSHd) login attempts
/var/log/messagesThis file contains general error messages and login attempts for:
  • FTP
  • Nameserver daemons
  • SSH daemons
  • Courier mail server
  • Dovecot mail server

cPanel and Web Host Manager (WHM) services

The following table provides a list of all Web Host Manager and cPanel log files

 

PathDescription
/home/username/.cpanel/logsThis files contains a history of errors that occured within a user task queue.
/usr/local/cpanel/logs/access_logThis file contains history of cpanel and WHM user account access. The history is displayed in the Common Log Format which is a standardized text format.
/usr/local/cpanel/build/locale_database_logThis file contains a history of when a cpanel/WHM user amends a locale.
/usr/local/cpanel/logs/api_tokens_logThis is the file archiving records of Web Host Manager API tokens logs
/usr/local/cpanel/logs/cpdavd_error_logThis file contains all errors logs for WebDisk
/usr/local/cpanel/logs/cpdavd_session_logThis files stores all activity logs for WebDisk
/usr/local/cpanel/logs/cpgreylistd.logThis file records cpgreylistd or Greylisting daemon activity logs
/usr/local/cpanel/logs/cphulkd_errors.logThis is the file containing cphulkd or Brute Force Protection Error logs
/usr/local/cpanel/logs/cphulkd.logThis file contains activity logs for cphulkd daemon
/usr/local/cpanel/logs/cpwrapd_logThis file contains activity logs for cPanel/WHM daemon or cpsrvd
/usr/local/cpanel/logs/dnsadmin.logThis file contains request logs for dnsadmin
/usr/local/cpanel/logs/error_logThis file contains error logs for cPanel account
/usr/local/cpanel/logs/incoming_http_requests.logThis file contains records of the connection request logs to cPanel account server
/usr/local/cpanel/logs/license_logThis file contains license errors and logs of the cPanel license update
/usr/local/cpanel/logs/login_logThis file contains  records of cpsrvd daemon’s Login attempts
/usr/local/cpanel/logs/queueprocd.logThis file contains all logs for queueprocd or cPanel TaskQueue Processing daemon
/usr/local/cpanel/logs/safeapacherestart_logThis file contains records of every time Apache service was restarted on your server
/usr/local/cpanel/logs/session_logThis file records user activities within the cPanel account
/usr/local/cpanel/logs/setupdbmap_logThis file contains records of all database related activities within the cPanel.
/usr/local/cpanel/logs/stats_logThis files records bandwidth statistics for all cPanel accounts within the server
/usr/local/cpanel/logs/tailwatchd_logThis file contains logs for tailwatchd or the Tailwatch Driver
/usr/local/cpanel/logs/panic_logThis file contains error logs for cPanel account server
/usr/local/cpanel/logs/php-fpm/error.logThis file contains implementation errors for PHP-FPM. The errors include  cpdavd and cpdrvd service errors.
/var/cpanel/php-fpm/USER/logs/slow.logThis the file containing the scripts that operate at unusually slow speed for a user.
/var/cpanel/php-fpm/USER/logs/error.logThis file contains errors logs for cPanel user
/var/cpanel.bandwidth.cacheThis files records cached bandwidth history for every cPanel account on the server
/var/cpanel/accounting.logThis file records all cPanel account action
/var/log/chkservd.logThis file records all service status logs
/var/log/cpanel-install.logThis file contains all installation logs for cPanel/WHM

Directories

The table below includes Log directories for cPanel/WHM

 

Directory path Description
/usr/local/cpanel/logs/cpbackupThis directory holds cPanel backup files
/usr/local/cpanel/logs/cpbackup_transporterThis is a directory containing files for the Cpanel backup transporter.
/usr/local/cpanel/logs/easy/apacheThis directory contains log files for EsyApache build
/usr/local/cpanel/logs/update_analysisThis is a directory containing .tar files for update process
/var/cpanel/bandwidth/usernameThis is the directory containing the bandwidth usage logs for your account
/var/cpanel/logsThis directory holds log files and miscellaneous log files for your account
/var/cpanel/updatelogsThis directory contains update log files for your system
/var/cpanel/logs/mysql_upgrade.logThis is the directory containing MySQL upgrade logs for your account.
/var/cpanel/horde/logThis is the directory containing Horde’s log files
/var/cpanel/squirrelmailThis directory contains SquirreMail log files
/var/cpanel/roundcube/logThis is the directory containing Roundcube Webmail log files
/var/cpanel/transfer_sessionThis is the location for restore and transfer sessions subdirectories.

Each subdirectory holds log files for sessions in a line delimited JSON format.

FTP

Directory PathDescription
/usr/local/apache/domlogsThis directory holds FTP transaction logs for all cPanel accounts domains on web servers running EasyApache 3.
/etc/apache2/logs/domlogsThis directory holds FTP transaction logs for all cpanel accounts domain on web servers running EasyApache 4

MAIL

FILES

FilepathDescription
/var/log/exim_mainlogThis file holds  delivery logs and Exim’s mail receipt for cPanel account domain
/var/log/exim_rejectlogThis file holds message logs rejected by the system due to ACLs.
/var/log/exim_paniclogThis file holds severe error logs for Exim.
/var/log/maillogThis file contains POP3 and IMAP transactions, login attempts, and all Apache SpamAssassin scores

DIRECTORIES

Directory PathDescription
/var/spool/exim/inputThis is a directory for queued incoming email logs
/usr/local/cpanel/3rdparty/mailman/logsThis directory holds mailman logs for you account.

MEMORY USAGE

FilepathDescription
/var/log/dcpumon/YYYY/MMM/DDThis file holds details about processes consuming the most memory and CPU:
  • YYY is a subdirectory holding processes’ log by month.
  • MMM is a subdirectory containing YYY directory.
  • DD is a subdirectory that holds logs for process for a specific day of a month.
/var/log/muninThis files holds the Munin for your accounts. A munin is a plugin that displays details of Apache, CPU, usage, Exim and other details with rrdtool utility

MYSQL

FilepathDescription
/var/log/muninThis is the files containing MySQL databases and errors of your cPanel account.

WEB SERVERS

FilepathDescription
/usr/local/apache/domlogs/DOMAINThis is the directory containing user account’s log data existing on web servers that operates EasyApache3
/etc/apache2/logs/domlogs/DOMAINThis is the directory containing user account’s log data existing on web servers that operates EasyApache4
/var/log/apache2/modsec_audit.logThis is the file containing ModSecurity’s log information
/var/log/apache2/suexec_logThis is the file that holds details regarding suEXEC audit logs
/var/log/apache2/suphp_logThis file holds information about audit logs for suPHP Apache module
/var/log/apache2/mod_jk.logThis file holds connection logs for Apache Tomcat.
/var/log/apache2/error_logThis is the file containing CGI applications and webservers’ error logs

TOMCAT

Filepath Description
/var/log/easy-tomcat7/localhost-access_logThis is the file holding Tomcat access logs.
/var/log/easy-tomcat7/catalina.errThis is the file holding error logs for Tomcat7
/var/log/easy-tomcat7/catalina.outThis is th file containing output logs for Tomcat7

 

Conclusion

That is it! If you ever run into trouble with your VPS server, you can use the directories above to investigate the issue. Login to your server via SSH and use this article as a guide to navigating to the specific location which the exact log file is stored. If this does not help you to solve the issue, contact your VPS service provider’s support. If you are not satisfied with the level of support you are currently getting from your hosting, consider switching to one that has received high grades for support in our VPS hosting reviews.

 

Check out these top 3 VPS services:

Kamatera
$4.00 /mo
Starting price
Visit Kamatera
Rating based on expert review
  • User Friendly
    3.5
  • Support
    3.0
  • Features
    3.9
  • Reliability
    4.0
  • Pricing
    4.3
ScalaHosting
$2.95 /mo
Starting price
Visit ScalaHosting
Rating based on expert review
  • User Friendly
    4.8
  • Support
    4.3
  • Features
    4.4
  • Reliability
    4.8
  • Pricing
    4.5
Liquid Web
$5.00 /mo
Starting price
Visit Liquid Web
Rating based on expert review
  • User Friendly
    3.8
  • Support
    4.8
  • Features
    4.5
  • Reliability
    4.6
  • Pricing
    3.8

How To Fix The “Is Its Parent Directory Writable By The Server”?

Most of the times when you migrate a site from one hosting company to another an
3 min read
Arvind Singh
Arvind Singh
Hosting Expert

How to Install vBulletin Connect 5 Forum Software

This Tutorial will show how to install the vBulletin Connect 5 forum software sc
4 min read
Jeffrey Scott
Jeffrey Scott
Hosting Expert

How to Read & Customize IIS Log Files

This article will discuss the way of reading IIS log files with Log Parser Studi
2 min read
Md. Ehsanul Haque Kanan
Md. Ehsanul Haque Kanan
Hosting Expert

How to Edit the CSS for your WordPress Site Using the cPanel Hosting Control Panel

As you know, the design of a WordPress website is controlled by
4 min read
Avi Ilinsky
Avi Ilinsky
Hosting Expert
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.
Click to go to the top of the page
Go To Top