{"id":65,"date":"2023-12-21T02:38:06","date_gmt":"2023-12-21T02:38:06","guid":{"rendered":"https:\/\/buyandhost.in\/blog\/?p=65"},"modified":"2023-12-21T08:14:20","modified_gmt":"2023-12-21T08:14:20","slug":"how-to-check-cpanel-logs","status":"publish","type":"post","link":"https:\/\/buyandhost.in\/blog\/how-to-check-cpanel-logs\/","title":{"rendered":"How to check cPanel logs"},"content":{"rendered":"<p>cPanel logs refer to the various log files generated by the cPanel control panel and associated services on a web hosting server. These logs are instrumental in monitoring server activity, diagnosing issues, and troubleshooting problems related to website hosting, server administration, email services, FTP, databases, and more<\/p>\n<p>In a cPanel environment, various logs are generated to monitor different aspects of the server and hosting accounts. Here&#8217;s an overview of the main logs associated with different services within cPanel:<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Apache Logs:<\/strong><\/h3>\n<ol>\n<li><strong>Access Logs:<\/strong> Record details of every request made to the server, including IP addresses, requested files, HTTP status codes, etc. Locations:<br \/>\n&gt;&gt; Main access log: <code>\/etc\/apache2\/logs\/access_log<\/code><br \/>\n&gt;&gt; Individual domain access logs: <code>\/usr\/local\/apache\/domlogs\/[domain_name]<\/code><\/li>\n<li><strong>Error Logs:<\/strong> Capture errors encountered during Apache operations, aiding in debugging website issues. Locations:<br \/>\n&gt;&gt; Main error log: <code>\/etc\/apache2\/logs\/error_log<\/code><br \/>\n&gt;&gt; Individual domain error logs: <code>\/usr\/local\/apache\/domlogs\/[domain_name]error_log<\/code><\/li>\n<\/ol>\n<h3><strong>Email Logs:<\/strong><\/h3>\n<ol>\n<li><strong>Exim Mail Server Logs:<\/strong> Track mail transactions and delivery attempts.<br \/>\n&gt;&gt; Main log: <code>\/var\/log\/exim_mainlog<\/code><br \/>\n&gt;&gt; SMTP outgoing connections: <code>\/var\/log\/exim_rejectlog<\/code><\/li>\n<li><strong>Mail Delivery Logs:<\/strong> Document mail deliveries and failures.<br \/>\n&gt;&gt;<code>\/var\/log\/maillog<\/code> or <code>\/var\/log\/mail.log<\/code><\/li>\n<\/ol>\n<h3><strong>FTP Logs:<\/strong><\/h3>\n<ol>\n<li><strong>Pure-FTPd Logs:<\/strong> Record FTP transactions and user activities.<br \/>\n&gt;&gt; Transaction logs: <code>\/var\/log\/messages<\/code> or <code>\/var\/log\/syslog<\/code><br \/>\n&gt;&gt; Account-specific logs: <code>\/var\/log\/pureftpd.log<\/code><\/li>\n<\/ol>\n<h3><strong>MySQL Logs:<\/strong><\/h3>\n<ol>\n<li><strong>MySQL Error Log:<\/strong> Contains errors and warnings encountered by the MySQL server.<br \/>\n&gt;&gt; Error log location: <code>\/var\/lib\/mysql\/[hostname].err<\/code><\/li>\n<li><strong>MySQL Slow Query Log:<\/strong> Logs queries that take longer than a specified time to execute.<br \/>\n&gt;&gt; Location: Usually specified in MySQL configuration (my.cnf). Commonly <code>\/var\/lib\/mysql\/[hostname]-slow.log<\/code><\/li>\n<\/ol>\n<h3><strong>WHM (Web Host Manager) Logs:<\/strong><\/h3>\n<ol>\n<li><strong>cPanel Error Logs:<\/strong> Record errors and warnings related to WHM\/cPanel operations.<br \/>\n&gt;&gt; Location: <code>\/usr\/local\/cpanel\/logs\/error_log<\/code><\/li>\n<li><strong>cPanel Access Logs:<\/strong> Document access to WHM\/cPanel.<br \/>\n&gt;&gt; Location: <code>\/usr\/local\/cpanel\/logs\/access_log<\/code><\/li>\n<li><strong>WHM Services Status Logs:<\/strong> Display service status changes and server reboots. &gt;&gt; Location: <code>\/var\/log\/chkservd.log<\/code><\/li>\n<\/ol>\n<p>Remember, log locations might vary based on the server configuration and software versions. Access to these logs within cPanel can also differ based on the hosting provider&#8217;s customization or specific cPanel themes. Generally, you can access most of these logs via the cPanel interface by navigating to the &#8220;Metrics&#8221; or &#8220;Logs&#8221; section.<\/p>\n<p>If you&#8217;re unable to find logs via cPanel, you might need to access them directly using SSH (Secure Shell) or a file manager provided by your hosting provider.<\/p>\n<h4><\/h4>\n<h3 class=\"fittexted_for_content_h4\"><strong>CPanel Logs \u2013 Apache, Access, Email, Error, FTP, MySQL, WHM<\/strong><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1800\" src=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2021\/06\/cpanel-log.png\" alt=\"cpanel log\" width=\"643\" height=\"268\" \/><\/p>\n<p><a href=\"https:\/\/cpanel.net\/\" target=\"_blank\" rel=\"noopener\">cPanel<\/a> uses a graphical interface to make <a href=\"https:\/\/buyandhost.in\/\" target=\"_blank\" rel=\"noopener\">web hosting<\/a> super easy, but there are command line tools you could familiarize yourself with for advanced troubleshooting. cPanel logs most activity that happens on a <a href=\"https:\/\/buyandhost.in\/vps-hosting.html\">server<\/a> to log files so you can go back and review log entries for problems, instead of having to be on the server at the time of them happening.<\/p>\n<p>In this guide we will see the locations of the cPanel log files for things such as access logs, Apache web server logs, email logs, error logs, ftp logs, MySQL logs, and WHM logs.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-229 size-full\" src=\"https:\/\/i2.wp.com\/chennaihosting.net\/blog\/wp-content\/uploads\/2019\/03\/loglocationsposter.jpg?resize=720%2C1051\" alt=\"cPanel Logs - Apache, Access, Email, Error, FTP, MySQL, WHM\" width=\"720\" height=\"1051\" data-recalc-dims=\"1\" \/><\/p>\n<p>From the above image, you can see the log locations. However we will see the complete log lists and its location following by this image.<\/p>\n<h3 class=\"fittexted_for_content_h3\"><strong>cPanel logs<\/strong><\/h3>\n<table class=\"article_table\">\n<tbody>\n<tr>\n<th>Access logs and user actions<\/th>\n<td>\/usr\/local\/cpanel\/logs\/access_log<\/td>\n<\/tr>\n<tr class=\"alt\">\n<th>Account transfers and misc. logs<\/th>\n<td>\/var\/cpanel\/logs<\/td>\n<\/tr>\n<tr>\n<th>Auditing log (account creations, deletions, etc)<\/th>\n<td>\/var\/cpanel\/accounting.log<\/td>\n<\/tr>\n<tr class=\"alt\">\n<th>Backup logs<\/th>\n<td>\/usr\/local\/cpanel\/logs\/cpbackup<\/td>\n<\/tr>\n<tr>\n<th>Brute force protection (cphulkd) log<\/th>\n<td>\/usr\/local\/cpanel\/logs\/cphulkd.log<\/td>\n<\/tr>\n<tr class=\"alt\">\n<th>Cpanel dnsadmin dns clustering daemon<\/th>\n<td>\/usr\/local\/cpanel\/logs\/dnsadmin_log<\/td>\n<\/tr>\n<tr>\n<th>Cpanel taskqueue processing daemon<\/th>\n<td>\/usr\/local\/cpanel\/logs\/queueprocd.log<\/td>\n<\/tr>\n<tr class=\"alt\">\n<th>DBmapping<\/th>\n<td>\/usr\/local\/cpanel\/logs\/setupdbmap_log<\/td>\n<\/tr>\n<tr>\n<th>EasyApache build logs<\/th>\n<td>\/usr\/local\/cpanel\/logs\/easy\/apache\/<\/td>\n<\/tr>\n<tr class=\"alt\">\n<th>Error log<\/th>\n<td>\/usr\/local\/cpanel\/logs\/error_log<\/td>\n<\/tr>\n<tr>\n<th>Installation log<\/th>\n<td>\/var\/log\/cpanel<\/td>\n<\/tr>\n<tr class=\"alt\">\n<th>License updates and errors<\/th>\n<td>\/usr\/local\/cpanel\/logs\/license_log<\/td>\n<\/tr>\n<tr>\n<th>Locale database modifications<\/th>\n<td>\/usr\/local\/cpanel\/logs\/build_locale_database_log<\/td>\n<\/tr>\n<tr class=\"alt\">\n<th>Login errors (CPSRVD)<\/th>\n<td>\/usr\/local\/cpanel\/logs\/login_log<\/td>\n<\/tr>\n<tr>\n<th>Horde<\/th>\n<td>\/var\/cpanel\/horde\/log\/<\/td>\n<\/tr>\n<tr class=\"alt\">\n<th>RoundCube<\/th>\n<td>\/var\/cpanel\/roundcube\/log\/<\/td>\n<\/tr>\n<tr>\n<th>SquirrelMail<\/th>\n<td>\/var\/cpanel\/squirrelmail\/<\/td>\n<\/tr>\n<tr class=\"alt\">\n<th>Panic log<\/th>\n<td>\/usr\/local\/cpanel\/logs\/panic_log<\/td>\n<\/tr>\n<tr>\n<th>Per account bandwidth history (Cached)<\/th>\n<td>\/var\/cpanel\/bandwidth.cache\/{USERNAME}<\/td>\n<\/tr>\n<tr class=\"alt\">\n<th>Per account bandwidth history (Human Readable)<\/th>\n<td>\/var\/cpanel\/bandwidth\/{USERNAME}<\/td>\n<\/tr>\n<tr>\n<th>Service status logs<\/th>\n<td>\/var\/log\/chkservd.log<\/td>\n<\/tr>\n<tr class=\"alt\">\n<th>Tailwatch driver tailwatchd log<\/th>\n<td>\/usr\/local\/cpanel\/logs\/tailwatch_log<\/td>\n<\/tr>\n<tr>\n<th>Update analysis reporting<\/th>\n<td>\/usr\/local\/cpanel\/logs\/updated_analysis\/{TIMESTAMP}.log<\/td>\n<\/tr>\n<tr class=\"alt\">\n<th>Update (UPCP) log<\/th>\n<td>\/var\/cpanel\/updatelogs\/updated.{TIMESTAMP}.log<\/td>\n<\/tr>\n<tr>\n<th>WebDisk (CPDAVD)<\/th>\n<td>\/usr\/local\/cpanel\/logs\/cpdavd_error_log<\/td>\n<\/tr>\n<tr class=\"alt\">\n<th>Website statistics log<\/th>\n<td>\/usr\/local\/cpanel\/logs\/stats_log<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 class=\"fittexted_for_content_h2\"><\/h2>\n<p><strong>cPanel access log<\/strong><\/p>\n<table class=\"article_table\" width=\"800\">\n<tbody>\n<tr>\n<th>Access logs and user actions<\/th>\n<td>\/usr\/local\/cpanel\/logs\/access_log<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><strong>cPanel apache log<\/strong><\/p>\n<table class=\"article_table\" width=\"799\">\n<tbody>\n<tr class=\"alt\">\n<th>Apache restarts done through cPanel and WHM<\/th>\n<td>\/usr\/local\/cpanel\/logs\/safeapcherestart_log<\/td>\n<\/tr>\n<tr>\n<th>Domain access logs<\/th>\n<td>\/usr\/local\/apache\/domlogs\/{DOMAIN}<\/td>\n<\/tr>\n<tr class=\"alt\">\n<th>Processing of log splitting<\/th>\n<td>\/usr\/local\/cpanel\/logs\/splitlogs_log<\/td>\n<\/tr>\n<tr>\n<th>suPHP audit log<\/th>\n<td>\/usr\/local\/apache\/logs\/suphp_log<\/td>\n<\/tr>\n<tr class=\"alt\">\n<th>Web server and CGI application error log<\/th>\n<td>\/usr\/local\/apache\/logs\/error_log<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><strong>cPanel email log<\/strong><\/p>\n<table class=\"article_table\" width=\"797\">\n<tbody>\n<tr>\n<th>Delivery and receipt log<\/th>\n<td>\/var\/log\/exim_mainlog<\/td>\n<\/tr>\n<tr class=\"alt\">\n<th>Incoming mail queue<\/th>\n<td>\/var\/spool\/exim\/input\/<\/td>\n<\/tr>\n<tr>\n<th>Log of messages rejected basedon ACLS or other policies<\/th>\n<td>\/var\/log\/exim_rejectlog<\/td>\n<\/tr>\n<tr class=\"alt\">\n<th>Unexpected\/Fatal error log<\/th>\n<td>\/var\/log\/exim_paniclog<\/td>\n<\/tr>\n<tr>\n<th>IMAP, POP login attempts, transactions,fatal errors and spam scoring<\/th>\n<td>\/var\/log\/maillog<br \/>\n\/var\/log\/messages<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><strong>MySQL log<\/strong><\/p>\n<table class=\"article_table\" width=\"800\">\n<tbody>\n<tr class=\"alt\">\n<th>MySQL error log<\/th>\n<td>\/var\/lib\/mysql\/{SERVER_NAME}.err<\/td>\n<\/tr>\n<tr>\n<th>MySQL slow query log (if enabled in my.cnf)<\/th>\n<td>\/var\/log\/slowqueries<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>MySQL can generate various types of logs that can be helpful for troubleshooting, performance monitoring, and auditing.<\/p>\n<p>The logs can provide information on queries, errors, connections, and more. The types of logs and their configurations can be managed in the MySQL configuration file (<code>my.cnf<\/code> or <code>my.ini<\/code>).<\/p>\n<p>From this you find where to begin looking if you suspect problems on your cPanel server.<\/p>\n<p>We hope you&#8217;ve found this useful!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>cPanel logs refer to the various log files generated by the cPanel control panel and associated services on a web hosting server. These logs are instrumental in monitoring server activity, diagnosing issues, and troubleshooting problems related to website hosting, server administration, email services, FTP, databases, and more In a cPanel environment, various logs are generated [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":81,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[3,4,5,6,7],"class_list":["post-65","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-apache","tag-email","tag-ftp","tag-mysql","tag-whm"],"_links":{"self":[{"href":"https:\/\/buyandhost.in\/blog\/wp-json\/wp\/v2\/posts\/65","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buyandhost.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buyandhost.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buyandhost.in\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/buyandhost.in\/blog\/wp-json\/wp\/v2\/comments?post=65"}],"version-history":[{"count":16,"href":"https:\/\/buyandhost.in\/blog\/wp-json\/wp\/v2\/posts\/65\/revisions"}],"predecessor-version":[{"id":90,"href":"https:\/\/buyandhost.in\/blog\/wp-json\/wp\/v2\/posts\/65\/revisions\/90"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buyandhost.in\/blog\/wp-json\/wp\/v2\/media\/81"}],"wp:attachment":[{"href":"https:\/\/buyandhost.in\/blog\/wp-json\/wp\/v2\/media?parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buyandhost.in\/blog\/wp-json\/wp\/v2\/categories?post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buyandhost.in\/blog\/wp-json\/wp\/v2\/tags?post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}