SlideShare a Scribd company logo
1 of 15
cPanel & WHM Logs
Troubleshooting 101: What do the logs say?
Objective
• Learn all the per-service log locations
Services Covered
• Apache
• incl. Tomcat and PHP
• cPanel/WHM
• incl. backups, updates, installation, and cpsrvd
• DNS
• Email
• incl. webmail, POP3, IMAP, SMTP, SpamAssassin
• SQL
• System
• Monitoring and Statistics
• ClamAV
Apache Logs
Service Content File
httpd Apache access
EA3: /usr/local/apache/logs/access_log
EA4: /etc/apache2/logs/access_log
Apache errors
EA3: /usr/local/apache/logs/error_log
EA4: /etc/apache2/logs/error_log
Apache domain logs
EA3: /usr/local/apache/domlogs/${user}/
EA4: /etc/apache2/domlogs/${user}/
/home/${user}/access-logs/${domain} [SymLink]
/home/${user}/access-logs/${subdomain}.${domain} [SymLink]
Easy
Apache 3
Build Logs /usr/local/cpanel/logs/easy/apache/
EA4’s PH
P-FPM
General PHP-FPM errors /usr/local/cpanel/logs/php-fpm/error.log
User-specific errors /var/cpanel/php-fpm/${user}/logs/slow.log
Tomcat & PHP Logs
Service Content File
Tomcat (js
vc.exec)
Tomcat Output /var/log/easy-tomcat7/catalina.out
Tomcat Errors /var/log/easy-tomcat7/catalina.err
PHP suPHP access errors
EA3: /usr/local/apache/logs/suphp_log
EA4: /etc/apache2/logs/suphp_log
Errors from pages error_log in the directory the script is in
cPanel & WHM Logs
Service Content File
cpsrvd cPanel, WHM, & Webmail logins /usr/local/cpanel/logs/login_log
cPanel, WHM, & Webmail access /usr/local/cpanel/logs/access_log
cPanel, WHM, & Webmail critical errors /usr/local/cpanel/logs/panic_log
cPanel account creation or modification /var/cpanel/accounting.log
License updates and errors /usr/local/cpanel/logs/license_log
cPanel & WHM Logs
Service Content File
cPanel update Update progress and status /var/cpanel/updatelogs/update-$(date +%s).log
cPanel
installation
The output of “sh latest” /var/log/cpanel-install.log
cPanel
Backup
Automated backup status /usr/local/cpanel/logs/cpbackup
Automated backup transport status /usr/local/cpanel/logs/cpbackup_transporter
DNS Logs
Service Content File
BIND DNS information errors /var/log/messages
NSD /var/log/messages
PowerDNS /var/log/messages
cPanel DNS
Cluster
DNS Cluster logs /usr/local/cpanel/logs/dnsadmin_log
Email Logs
Service Content File
cpsrvd Webmail (Squirrelmail) /var/cpanel/squirrelmail
Webmail (Roundcube with MySQL) /var/cpanel/roundcube/log/errors
Webmail (Roundcube with SQLite) ~${user}/tmp/
Webmail (Horde)
/var/cpanel/horde/log (pre-
11.50) /home/${user}/.cphorde/horde.log
(11.50+)
Exim SMTP transactions /var/log/exim_mainlog
SMTP rejects /var/log/exim_rejectlog
SMTP critical errors /var/log/exim_paniclog
Email Logs
Service Content File
IMAP POP3
SpamAssassin
IMAP/PHP3 logins,
transactions, errors, spam
scoring
/var/log/maillog
Mailman /usr/local/cpanel/3rdparty/mailman/logs/*
SQL Logs
Service Content File
MySQL Service information and errors /var/lib/mysql/$(uname -n).err
Upgrade log /var/cpanel/logs/mysql_upgrade.log.$(timestamp)
PgSQL
service information and errors
(by day)
/var/lib/pgsql/data/pg_log/postgresql-${Day}.log
Startup log /var/lib/pgsql/pgstartup.log
System Logs
Service Content File
sshd
Login attempts and failures
requests for SFTP
/var/log/secure
/var/log/messages
yum
RPM-based software installation info
(incl. EA4 rpm installations)
/var/log/yum.log
crond
Info about cron table execution,
modification, or errors
/var/log/cron
Monitoring and Statistics
Service Content File
cPhulkd
Repeat login failures for
cPanel, WHM, Webmail
/usr/local/cpanel/logs/cphulkd.log
Brute-force protection log /usr/local/cpanel/logs/cphulkd_errors.log
tailwatchd Monitoring log
/usr/local/cpanel/logs/tailwatchd_log /var/log/chkservd.lo
g
Server status log /usr/local/cpanel/logs/queueprocd.log
Monitoring and Statistics
Service Content File
Munin /var/log/munin/munin-node.log
cpanellogd Website statistics processing log /usr/local/cpanel/logs/status_log
Per-Account bandwidth history
(human readable)
/var/cpanel/bandwidth/${user}
Per-Account bandwidth history
(cached)
/var/cpanel/bandwidth.cache/${user}
CPU Top Memory and CPU consumers /var/log/dcpumon/${year}/${month}/${day}
Review
• Logs contain information helpful for troubleshooting
• Logs can be found in many locations on cPanel
servers

More Related Content

What's hot

SquirrelMail for webmail
SquirrelMail for webmailSquirrelMail for webmail
SquirrelMail for webmailAryman Gautam
 
WE18_Performance_Up.ppt
WE18_Performance_Up.pptWE18_Performance_Up.ppt
WE18_Performance_Up.pptwebhostingguy
 
[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure[MathWorks] Versioning Infrastructure
[MathWorks] Versioning InfrastructurePerforce
 
Linux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptLinux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptwebhostingguy
 
Usint Charles Proxy to understand REST
Usint Charles Proxy to understand RESTUsint Charles Proxy to understand REST
Usint Charles Proxy to understand RESTAnatoliy Odukha
 
Perl 1997 Perl As A System Glue
Perl 1997 Perl As A System GluePerl 1997 Perl As A System Glue
Perl 1997 Perl As A System GluePatrick Benson
 
Lesson 9. The Apache Web Server
Lesson 9. The Apache Web ServerLesson 9. The Apache Web Server
Lesson 9. The Apache Web Serverwebhostingguy
 
Charles guide sharing
Charles guide sharingCharles guide sharing
Charles guide sharingVincent Chang
 
Cocoa + HTTP
Cocoa + HTTPCocoa + HTTP
Cocoa + HTTPrentzsch
 
linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014Peter Martin
 
Cracking CTFs The Sysbypass CTF
Cracking CTFs The Sysbypass CTFCracking CTFs The Sysbypass CTF
Cracking CTFs The Sysbypass CTFRiyaz Walikar
 
Apache installation and configurations
Apache installation and configurationsApache installation and configurations
Apache installation and configurationsNikhil Jain
 
Rakesh Kaushik
Rakesh KaushikRakesh Kaushik
Rakesh Kaushikitplant
 
Fluentd meetup dive into fluent plugin (outdated)
Fluentd meetup dive into fluent plugin (outdated)Fluentd meetup dive into fluent plugin (outdated)
Fluentd meetup dive into fluent plugin (outdated)N Masahiro
 

What's hot (20)

Linux
LinuxLinux
Linux
 
Linux
LinuxLinux
Linux
 
SquirrelMail for webmail
SquirrelMail for webmailSquirrelMail for webmail
SquirrelMail for webmail
 
WE18_Performance_Up.ppt
WE18_Performance_Up.pptWE18_Performance_Up.ppt
WE18_Performance_Up.ppt
 
are available here
are available hereare available here
are available here
 
[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure
 
Apache
ApacheApache
Apache
 
Linux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptLinux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.ppt
 
Usint Charles Proxy to understand REST
Usint Charles Proxy to understand RESTUsint Charles Proxy to understand REST
Usint Charles Proxy to understand REST
 
Perl 1997 Perl As A System Glue
Perl 1997 Perl As A System GluePerl 1997 Perl As A System Glue
Perl 1997 Perl As A System Glue
 
Lesson 9. The Apache Web Server
Lesson 9. The Apache Web ServerLesson 9. The Apache Web Server
Lesson 9. The Apache Web Server
 
Charles guide sharing
Charles guide sharingCharles guide sharing
Charles guide sharing
 
Cocoa + HTTP
Cocoa + HTTPCocoa + HTTP
Cocoa + HTTP
 
linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014
 
Cracking CTFs The Sysbypass CTF
Cracking CTFs The Sysbypass CTFCracking CTFs The Sysbypass CTF
Cracking CTFs The Sysbypass CTF
 
Lession2 Xinetd
Lession2 XinetdLession2 Xinetd
Lession2 Xinetd
 
Apache installation and configurations
Apache installation and configurationsApache installation and configurations
Apache installation and configurations
 
Basics of unix
Basics of unixBasics of unix
Basics of unix
 
Rakesh Kaushik
Rakesh KaushikRakesh Kaushik
Rakesh Kaushik
 
Fluentd meetup dive into fluent plugin (outdated)
Fluentd meetup dive into fluent plugin (outdated)Fluentd meetup dive into fluent plugin (outdated)
Fluentd meetup dive into fluent plugin (outdated)
 

Viewers also liked

Viewers also liked (7)

Norton Bevel System - Brochure
Norton Bevel System - BrochureNorton Bevel System - Brochure
Norton Bevel System - Brochure
 
Norton Bevel System - Brochure
Norton Bevel System - BrochureNorton Bevel System - Brochure
Norton Bevel System - Brochure
 
3Com 3C125A
3Com 3C125A3Com 3C125A
3Com 3C125A
 
3Com 3C39036
3Com 3C390363Com 3C39036
3Com 3C39036
 
3Com 3C12091
3Com 3C120913Com 3C12091
3Com 3C12091
 
Voyainde
VoyaindeVoyainde
Voyainde
 
Migsun kiaan Vasundhara Ghaziabad.
Migsun kiaan Vasundhara Ghaziabad.Migsun kiaan Vasundhara Ghaziabad.
Migsun kiaan Vasundhara Ghaziabad.
 

Similar to Troubleshooting 101: What do the cPanel & WHM logs say

Apache logs monitoring
Apache logs monitoringApache logs monitoring
Apache logs monitoringUmair Amjad
 
DELL (OME) Open Manage Esentials network connections (TCP/UDP ports) and fire...
DELL (OME) Open Manage Esentials network connections (TCP/UDP ports) and fire...DELL (OME) Open Manage Esentials network connections (TCP/UDP ports) and fire...
DELL (OME) Open Manage Esentials network connections (TCP/UDP ports) and fire...David Pasek
 
Thijs Feryn - Leverage HTTP to deliver cacheable websites - Codemotion Milan ...
Thijs Feryn - Leverage HTTP to deliver cacheable websites - Codemotion Milan ...Thijs Feryn - Leverage HTTP to deliver cacheable websites - Codemotion Milan ...
Thijs Feryn - Leverage HTTP to deliver cacheable websites - Codemotion Milan ...Codemotion
 
[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure[MathWorks] Versioning Infrastructure
[MathWorks] Versioning InfrastructurePerforce
 
Securing Your Web Server
Securing Your Web ServerSecuring Your Web Server
Securing Your Web Servermanugoel2003
 
Centralized Syslog
Centralized SyslogCentralized Syslog
Centralized Sysloggocyclones
 
Montreal On Rails 5 : Rails deployment using : Nginx, Mongrel, Mongrel_cluste...
Montreal On Rails 5 : Rails deployment using : Nginx, Mongrel, Mongrel_cluste...Montreal On Rails 5 : Rails deployment using : Nginx, Mongrel, Mongrel_cluste...
Montreal On Rails 5 : Rails deployment using : Nginx, Mongrel, Mongrel_cluste...addame
 
Fargate 를 이용한 ECS with VPC 1부
Fargate 를 이용한 ECS with VPC 1부Fargate 를 이용한 ECS with VPC 1부
Fargate 를 이용한 ECS with VPC 1부Hyun-Mook Choi
 
Apache2 BootCamp : Getting Started With Apache
Apache2 BootCamp : Getting Started With ApacheApache2 BootCamp : Getting Started With Apache
Apache2 BootCamp : Getting Started With ApacheWildan Maulana
 
Linux System Administration - Web Server and squid setup
Linux System Administration - Web Server and squid setupLinux System Administration - Web Server and squid setup
Linux System Administration - Web Server and squid setupSreenatha Reddy K R
 
Trouble shoot with linux syslog
Trouble shoot with linux syslogTrouble shoot with linux syslog
Trouble shoot with linux syslogashok191
 
Heavy Web Optimization: Backend
Heavy Web Optimization: BackendHeavy Web Optimization: Backend
Heavy Web Optimization: BackendVõ Duy Tuấn
 
Like loggly using open source
Like loggly using open sourceLike loggly using open source
Like loggly using open sourceThomas Alrin
 
Install apache on centos
Install apache on centosInstall apache on centos
Install apache on centoshengko
 
Linux corporate-training-in-mumbai
Linux corporate-training-in-mumbaiLinux corporate-training-in-mumbai
Linux corporate-training-in-mumbaiUnmesh Baile
 

Similar to Troubleshooting 101: What do the cPanel & WHM logs say (20)

Apache logs monitoring
Apache logs monitoringApache logs monitoring
Apache logs monitoring
 
Fail2ban
Fail2banFail2ban
Fail2ban
 
DELL (OME) Open Manage Esentials network connections (TCP/UDP ports) and fire...
DELL (OME) Open Manage Esentials network connections (TCP/UDP ports) and fire...DELL (OME) Open Manage Esentials network connections (TCP/UDP ports) and fire...
DELL (OME) Open Manage Esentials network connections (TCP/UDP ports) and fire...
 
Performance_Up.ppt
Performance_Up.pptPerformance_Up.ppt
Performance_Up.ppt
 
Php logging
Php loggingPhp logging
Php logging
 
Thijs Feryn - Leverage HTTP to deliver cacheable websites - Codemotion Milan ...
Thijs Feryn - Leverage HTTP to deliver cacheable websites - Codemotion Milan ...Thijs Feryn - Leverage HTTP to deliver cacheable websites - Codemotion Milan ...
Thijs Feryn - Leverage HTTP to deliver cacheable websites - Codemotion Milan ...
 
Apache
ApacheApache
Apache
 
[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure
 
Securing Your Web Server
Securing Your Web ServerSecuring Your Web Server
Securing Your Web Server
 
Centralized Syslog
Centralized SyslogCentralized Syslog
Centralized Syslog
 
Montreal On Rails 5 : Rails deployment using : Nginx, Mongrel, Mongrel_cluste...
Montreal On Rails 5 : Rails deployment using : Nginx, Mongrel, Mongrel_cluste...Montreal On Rails 5 : Rails deployment using : Nginx, Mongrel, Mongrel_cluste...
Montreal On Rails 5 : Rails deployment using : Nginx, Mongrel, Mongrel_cluste...
 
Fargate 를 이용한 ECS with VPC 1부
Fargate 를 이용한 ECS with VPC 1부Fargate 를 이용한 ECS with VPC 1부
Fargate 를 이용한 ECS with VPC 1부
 
Apache2 BootCamp : Getting Started With Apache
Apache2 BootCamp : Getting Started With ApacheApache2 BootCamp : Getting Started With Apache
Apache2 BootCamp : Getting Started With Apache
 
Linux System Administration - Web Server and squid setup
Linux System Administration - Web Server and squid setupLinux System Administration - Web Server and squid setup
Linux System Administration - Web Server and squid setup
 
Trouble shoot with linux syslog
Trouble shoot with linux syslogTrouble shoot with linux syslog
Trouble shoot with linux syslog
 
6 technical-dns-workshop-day3
6 technical-dns-workshop-day36 technical-dns-workshop-day3
6 technical-dns-workshop-day3
 
Heavy Web Optimization: Backend
Heavy Web Optimization: BackendHeavy Web Optimization: Backend
Heavy Web Optimization: Backend
 
Like loggly using open source
Like loggly using open sourceLike loggly using open source
Like loggly using open source
 
Install apache on centos
Install apache on centosInstall apache on centos
Install apache on centos
 
Linux corporate-training-in-mumbai
Linux corporate-training-in-mumbaiLinux corporate-training-in-mumbai
Linux corporate-training-in-mumbai
 

Recently uploaded

Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 

Recently uploaded (20)

Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 

Troubleshooting 101: What do the cPanel & WHM logs say

  • 1. cPanel & WHM Logs Troubleshooting 101: What do the logs say?
  • 2. Objective • Learn all the per-service log locations
  • 3. Services Covered • Apache • incl. Tomcat and PHP • cPanel/WHM • incl. backups, updates, installation, and cpsrvd • DNS • Email • incl. webmail, POP3, IMAP, SMTP, SpamAssassin • SQL • System • Monitoring and Statistics • ClamAV
  • 4. Apache Logs Service Content File httpd Apache access EA3: /usr/local/apache/logs/access_log EA4: /etc/apache2/logs/access_log Apache errors EA3: /usr/local/apache/logs/error_log EA4: /etc/apache2/logs/error_log Apache domain logs EA3: /usr/local/apache/domlogs/${user}/ EA4: /etc/apache2/domlogs/${user}/ /home/${user}/access-logs/${domain} [SymLink] /home/${user}/access-logs/${subdomain}.${domain} [SymLink] Easy Apache 3 Build Logs /usr/local/cpanel/logs/easy/apache/ EA4’s PH P-FPM General PHP-FPM errors /usr/local/cpanel/logs/php-fpm/error.log User-specific errors /var/cpanel/php-fpm/${user}/logs/slow.log
  • 5. Tomcat & PHP Logs Service Content File Tomcat (js vc.exec) Tomcat Output /var/log/easy-tomcat7/catalina.out Tomcat Errors /var/log/easy-tomcat7/catalina.err PHP suPHP access errors EA3: /usr/local/apache/logs/suphp_log EA4: /etc/apache2/logs/suphp_log Errors from pages error_log in the directory the script is in
  • 6. cPanel & WHM Logs Service Content File cpsrvd cPanel, WHM, & Webmail logins /usr/local/cpanel/logs/login_log cPanel, WHM, & Webmail access /usr/local/cpanel/logs/access_log cPanel, WHM, & Webmail critical errors /usr/local/cpanel/logs/panic_log cPanel account creation or modification /var/cpanel/accounting.log License updates and errors /usr/local/cpanel/logs/license_log
  • 7. cPanel & WHM Logs Service Content File cPanel update Update progress and status /var/cpanel/updatelogs/update-$(date +%s).log cPanel installation The output of “sh latest” /var/log/cpanel-install.log cPanel Backup Automated backup status /usr/local/cpanel/logs/cpbackup Automated backup transport status /usr/local/cpanel/logs/cpbackup_transporter
  • 8. DNS Logs Service Content File BIND DNS information errors /var/log/messages NSD /var/log/messages PowerDNS /var/log/messages cPanel DNS Cluster DNS Cluster logs /usr/local/cpanel/logs/dnsadmin_log
  • 9. Email Logs Service Content File cpsrvd Webmail (Squirrelmail) /var/cpanel/squirrelmail Webmail (Roundcube with MySQL) /var/cpanel/roundcube/log/errors Webmail (Roundcube with SQLite) ~${user}/tmp/ Webmail (Horde) /var/cpanel/horde/log (pre- 11.50) /home/${user}/.cphorde/horde.log (11.50+) Exim SMTP transactions /var/log/exim_mainlog SMTP rejects /var/log/exim_rejectlog SMTP critical errors /var/log/exim_paniclog
  • 10. Email Logs Service Content File IMAP POP3 SpamAssassin IMAP/PHP3 logins, transactions, errors, spam scoring /var/log/maillog Mailman /usr/local/cpanel/3rdparty/mailman/logs/*
  • 11. SQL Logs Service Content File MySQL Service information and errors /var/lib/mysql/$(uname -n).err Upgrade log /var/cpanel/logs/mysql_upgrade.log.$(timestamp) PgSQL service information and errors (by day) /var/lib/pgsql/data/pg_log/postgresql-${Day}.log Startup log /var/lib/pgsql/pgstartup.log
  • 12. System Logs Service Content File sshd Login attempts and failures requests for SFTP /var/log/secure /var/log/messages yum RPM-based software installation info (incl. EA4 rpm installations) /var/log/yum.log crond Info about cron table execution, modification, or errors /var/log/cron
  • 13. Monitoring and Statistics Service Content File cPhulkd Repeat login failures for cPanel, WHM, Webmail /usr/local/cpanel/logs/cphulkd.log Brute-force protection log /usr/local/cpanel/logs/cphulkd_errors.log tailwatchd Monitoring log /usr/local/cpanel/logs/tailwatchd_log /var/log/chkservd.lo g Server status log /usr/local/cpanel/logs/queueprocd.log
  • 14. Monitoring and Statistics Service Content File Munin /var/log/munin/munin-node.log cpanellogd Website statistics processing log /usr/local/cpanel/logs/status_log Per-Account bandwidth history (human readable) /var/cpanel/bandwidth/${user} Per-Account bandwidth history (cached) /var/cpanel/bandwidth.cache/${user} CPU Top Memory and CPU consumers /var/log/dcpumon/${year}/${month}/${day}
  • 15. Review • Logs contain information helpful for troubleshooting • Logs can be found in many locations on cPanel servers