Some important logs and config files location

The common logs files located here /usr/local/cpanel/logs directory.

cPanel access log for both cPanel and WHM
/usr/local/cpanel/logs/access_log

cPanel error log (This file contains all output from each upcp call. logs are stored with the timestamp from which the upcp process was executed)

Web server (Apache) log (This log file contains all the errors caused by http Apache server, standard errors due to domain's virtual configuration, mod_security, PHP Warning and other apache modules configurations)

/usr/local/cpanel/logs/error_log

cPanel license log ( Cpanel license update attempts, other licence related errors are logged here. )
/usr/local/cpanel/logs/license_log

cPanel user login log
/usr/local/cpanel/logs/login_log

cPanel chat server log
/usr/local/cpanel/logs/melange.log

cPanel chat server message log
/usr/local/cpanel/logs/melange_msg.log

cPanel web stats log
/usr/local/cpanel/logs/stats_log (Awstats, Webalizer and Analog stats related output is logged in this file by the stats daemon (cpanellogd).)

Suexec log (If you get an internal server error for perl, CGI application, with no relevant information from the Apache error_log, then check this log file for potential suexec policy violations)

/usr/local/apache/logs/suexec_log

Apache access logs

/usr/local/apache/logs/access_log

Apache error_logs

/usr/local/apache/logs/error_log

cPanel keeps the domain weblogs here /usr/local/cpanel/domlogs ( This Log file allow you to see who has accessed your site)

/usr/local/cpanel/domlogs/domainname.com

***

Other system logs located here /var/log/

cPanel total bandwidth logs for the entire server
/var/log/bandwidth

chkservd service log
/var/log/chkservd.log

clamav log directory
/var/log/clamav

cPanel update log
/var/log/cpupdate.log

Exim email transaction log ( This log file contains all entries of message received or delivered on the server.)
/var/log/exim_mainlog

Exim error log
/var/log/exim_paniclog (This file contains other general unexpected/fatal errors from mail server.)

Exim rejected email log ( You can find logs for the messages which are rejected based on either ACLs or other policies.)
/var/log/exim_rejectlog

Transaction and login log for all mail services ( This file contains IMAP, POP3, and SpamAssassin logs.)
/var/log/maillog

PostgreSQL log file
/var/log/pgsql

cPanel/WHM Installation log
These log files contain logs of the cPanel installation.

/var/log/cpanel*install*

cPanel/WHM Requests and Errors log:
cPanel script log errors or strange behavior with cPanel/WHM control panel in this log file.

/var/cpanel/updatelogs/last

Service Status Log (The daemon (chkservd) which monitors services, logs all status in this file. Failed services are represented with a [-], and active are represented with [+].)

/var/log/chkservd.log

FTP Logs (FTP logins, upload/download transactions and other general errors are logged in this file)

/var/log/messages

/var/log/xferlog

This is symbolic link in most cases to /usr/local/apache/domlogs/ftpxferlog, which contains a history of the transactions made by FTP users

MySQL Log (MySQL Log file path can be different , but it is generally located in /var/lib/mysql/ folder and also can be found at /var/log/mysqld.log)

/var/lib/mysql/$(hostname).err
/var/log/mysqld.log

Cron log (An entry is created in this file when a cron is executed)

/var/log/cron

General information and login attempts of SSHD are logged here

/var/log/secure

This log lists the top processes running Each five minute a new log is created

/var/log/dcpumon/toplog.*

***

Contains a list of accounting functions performed such as account removal and creation

/var/cpanel/accounting.log

Tweak settings for whm can be done in this file

/var/cpanel/cpanel.config

Main ip of the server is specified in this file

/var/cpanel/mainip

Maximum emails per hour for a domain can be specified here The format is like the following domainname=number

/var/cpanel/maxemail

***Run the script /scripts/build_maxemails_config after editing this file This will create a file named after the corresponding domain name inside the directory maxemailsperdomain with the value specified in it.

Server wide maximum emails per hour can be set in this file. It applies to the whole domains in the server. You only need to insert the corresponding value in the file. A value of zero means unlimited

/var/cpanel/maxemailsperhour

This file gives you the name of the nameservers used by reseller users

/var/cpanel/resellers-nameservers

This file lists the privileges of different reseller users

/var/cpanel/resellers

This directory contains files for all the packages created under the WHM and the corresponding files will give all the details related to that package

/var/cpanel/packages

This directory contains files for all the suspended users. You can get the reason for suspension from the corresponding user file

/var/cpanel/suspended

This directory contains cpanel user files which contain all the information related to a cpanel account

/var/cpanel/users

This directory contains templates for zone files, which will be used for creating zone file for a particular domain when a user is created

/var/cpanel/zonetemplates

This directory contains files named after the domain names which give separate http and all bandwidth usages for a particular day

 /var/cpanel/bandwidth

This directory contains sub directories named after the cpanel user name which contains two files named mysql-db-count and mysql-disk-usage .These files give you the number of databases a user have and the total disk space used by all these databases respectively

/var/cpanel/datastore

***

This file contains domains which are using the local mail server

/etc/localdomains

This file contains domains which are using a remote mail server instead of the local mail server

/etc/remotedomains

All the domains of users are listed in this file including the addon, parked and subdomains along with their username

/etc/userdomains

The main domains of all cpanel users are listed in this file along with their username

/etc/trueuserdomains

All cpanel users along with their owners are listed in this file

/etc/trueuserowners

This is the default file used in cpanel account creation Information from this file is taken when an account is created

/etc/wwwacct.conf

The ip which should be used for sending mails can be specified in this file Different ips can be set for different domains for sending mails and that can be specified in the file like the following domainname: ip address

/etc/mailips

This file lists all the ips in the file except the main shared ip

/etc/ips

This file lists all the ips of nameservers used by different domains

/etc/ips.dnsmaster

Lists the ip addresses in the server which are free

/etc/ipaddrpool

Cpanel updation configuration can be done in this file Once you edit this file do not forgot to run the script /scripts/upcp

/etc/cpupdate.conf

Cpanel backup configuration can be done in this file You can enable or disable cpanel backup using this file.

/etc/cpbackup.conf

Email forwarders and catchall for a domain can be specified in the corresponding file inside this directory

/etc/valiases

***The format is like the following *: accountname

Email filters can be specified in the corresponding file inside this directory

/etc/vfilters

***

Cpanel binaries are located in this directory

 /usr/local/cpanel/bin/

You can get cpanel version from this file

 /usr/local/cpanel/version

All log files of cpanel are located inside this directory

***

Files of phpmyadmin, webmail etc are located in this directory

/usr/local/cpanel/base

Files of mailman, fantastico etc are located in this directory

 /usr/local/cpanel/3rdparty

 

Similar Posts:

2 comments on “Some important logs and config files location

  1. In the interests of helping to keep the internet free of outed information, please consider updating this document. For example, the cpanel update log is now /var/cpanel/updatelogs/last — one can tail that file to watch the update process.

Leave a Reply

Your email address will not be published. Required fields are marked *