This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here

Skip to main content

Just Host Web Hosting Help

Log Locations On Dedicated/VPS

Overview

There are two main locations where logs are kept on Dedicated and VPS servers: the /usr/local/cpanel/logs directory and the /var/log/ directory. Here is a list of the logs common to each directory, as well as some which can be found in other locations on the server.

/usr/local/cpanel/logs

  • access_log: cPanel access log for both cPanel and WHM
  • cpbackup directory: logs of recent system backups
  • cphulkd.log: Firewall (cPHulk) blocks
  • error_log: cPanel error log
  • license_log: cPanel license log
  • login_log: cPanel user failed login log
  • stats_log: cPanel web stats log

/var/log/

  • messages: Contains global system messages like mail, cron, daemon, kern, auth, etc.
  • bandwidth: cPanel total bandwidth logs for the entire server
  • btmp: failed login attempts
  • chkservd.log: chkservd service log
  • clamav: clamav log directory
  • cron: any scheduled tasks, for both root and cPanel users
  • cpupdate.log: cPanel update log
  • exim_mainlog: Exim email transaction log
  • exim_paniclog: Exim error log
  • exim_rejectlog: Exim rejected email log
  • maillog: Transaction and login log for all mail services
  • pgsql: PostgreSQL log file
  • secure: authentication logs for both successful or failed logins
  • yum.log: updates for system packages

Miscellaneous

  • /usr/local/apache/logs/error_log - Apache error log e.g. some 500 errors.
  • /var/cpanel/accounting.log - Account creation, deletion, etc. 
  • /var/cpanel/logs/mysql_upgrade.log - logs of MySQL upgrades
  • /var/cpanel/updatelogs/ directory - cPanel/WHM updates
  • /var/lib/mysql/HOSTNAME.err - MySQL error log

cPanel keeps the domain weblogs in the /usr/local/cpanel/domlogs directory for each domain name that is hosted on the server. This includes FTP transfer logs for each account.

Knowledgebase Article 121,452 views bookmark tags: dedi dedicated directory file folder list locations logs vps


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

This article will explain how to view the email logs on a Dedicated or VPS server. This may be usefull if you are experiencing trouble with your email.
Knowledgebase Article 146,409 views tags: dedi dedicated logs mail vps whm

There are many ways that you can transfer files and folder to and from your hosting account. We highly recommend using an FTP (File Transfer Protocol) program to quickly upload and download files. We
Getting Started Article 323,949 views tags: file files filezilla manager setup

An extensive list of the location of the configuration files of the most common web applications
Knowledgebase Article 279,725 views tags: scripting scripts

Related Help Content

What are Raw Access Logs and how do I view them?
Knowledgebase Article 274,285 views tags: access log logs raw

This article will explain some common causes for 500 errors on Dedicated or V.P.S servers.
Knowledgebase Article 128,322 views tags: dedi dedicated error server vps

This article will explain where email is stored in your system directory.
Knowledgebase Article 199,607 views tags: backup email folder maildir mbox

This article will explain how to create and manage users on Dedicated or VPS servers.
Knowledgebase Article 139,190 views tags: dedi dedicated users vps

If you suspect malicious content, hacks or a virus on your VPS/Dedicated account here are some tools located in your WHM that you can use.
Knowledgebase Article 192,859 views tags: clamav dedi dedicated malware virus vps

How to Stop A Directory Index From Being Shown
Knowledgebase Article 298,406 views tags: directory htaccess index

What are the Error Logs?
Knowledgebase Article 256,326 views tags: logs

This article will explain how-to enable FTP on a newly provisioned VPS or Dedicated cPanel server. Since FTP is an unsecured connection point to the server, cPanel has it disabled by default in version 11.86 or prior.
Knowledgebase Article 43,694 views tags: dedicated file ftp root server transfer vps

** Google ad credits are only available to customers in the United States, Canada, and the United Kingdom at this time.

¹ VAT (Value Added Tax) is not included in our advertised price and will be charged separately and itemized on invoices and billing information. Standard VAT rates based on EU Member State regulations may apply. Learn more.