Knowledgebase: Dedicated & VPS Servers
Cpanel important log files and how to access (VPS & Dedicated Servers)
Posted by Pacific Host on 04 December 2011 04:52 PM
Important logs in Cpanel:
  • Exim main log: /var/log/exim_mainlog 
  • Apache access log: /usr/local/apache/logs/access_log
  • Apache error log: /usr/local/apache/logs/error_log
  • POP/IMAP logins are in: /var/log/maillog
  • FTP Logins are in: /var/log/messages
  • SSH Logins are in /var/log/secure
  • Mod_security log: /etc/httpd/logs/audit_log (may depend on installation)
Common commands to use from root
  • To tail a logrun # tail -f /path/to/log/file
  • To search a log run # grep searchterm /path/to/log/file
  • To see only the last x amount of lines # tail -200 /path/to/log/file
(1 vote(s))
Helpful
Not helpful

Comments (0)