Fixin’ issues one ticket at a time!
/var/
/var/logs/
/var/log/messages
– Contains Linux system logs (kernel, sysctl, etc), as well as logs for BIND(named), and detailed logs for pureftpd sessions
/var/log/cron
– Logs commands run for various system users by the cronjob system (crond)
/var/log/maillog
– cPanel POP3 server (cpop) logs, as well as spamd logs
/var/log/exim_mainlog
– Exim log for incoming and outgoing messages. Very useful when troubleshooting email issues.
/usr/local/cpanel/logs/access_log
– Stores log of pages and commands performed by cPanel users
/var/cpanel/logs
– Directory stores logs for cPanel account transfers
/usr/local/cpanel/logs/access_log
– Stores log of pages and commands performed by cPanel users
/var/cpanel/updatelogs
– Not a log file, but a directory containing cPanel system update logs
/var/cpanel/
Houses proprietary configuration data for cPanel, including:
- Primary cPanel configuration
- User configurations
- Reseller configurations
- Accounting, conversion, and update logs
- Bandwidth data
- Customized service templates
/var/cpanel/cpanel.config
- The primary cPanel configuration file
- Each variable within influences the way cPanel behaves
- Variables are line delimited, with variables separated by an equal sign
- If file does not exist, cpanel falls back to defaults
/var/cpanel/resellers
- Lists each reseller with a comma-delimited list of WHM resources that reseller has access to.
/var/cpanel/accounting.log
- Contains a list of accounting functions performed through WHM, including account removal and creation.
/var/cpanel/bandwidth
- Files contain a list of the bandwidth history for each account.
- Each named after their respective user.
- History files are stored in human-readable format, while actual bandwidth data are stored in round robin databases.
/var/cpanel/features
- File name is inherited from the feature list name.
- Contains a line delimited list of feature variables and a zero or one value.
- Variables control what cPanel resources are available to users.
/var/cpanel/packages
- Contains a list of packages, named after the packages they represent.
- If package belongs to reseller, file name is prefixed with reseller name.
- Each of these values determines the values created in cPanel user file.
/var/cpanel/users
- Contains a list of cPanel user configuration files, named after the user they pertain to.
- Variables define account resources, themes, domains, etc.
Other notable /var/cpanel directories
/var/cpanel/logs/
– This directory contains logs from account copies/transfers.
/var/cpanel/updatelogs
– Contains the output of each cPanel update executed on the server.
/var/cpanel/zonetemplates/
– Contains customized DNS zone templates created inWHM