cPanel Notes

These are cPanel specific, consisting of quick How-To helper notes, log locations and more.

  • Install cPanel

    The following information provides instruction on how to install cPanel.

    Download and install cPanel
    cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
  • Update cPanel License

    You may get a notice that your cPanel license has not been verified. When this happens, you need to update it.

    Update cPanel License Command
    /usr/local/cpanel/cpkeyclt

Install Engintron

Engintron is a free open source plugin for cPanel that installs and configures NGINX for cPanel based web servers.

Download and Install Engintron
cd /; rm -f engintron.sh; wget --no-check-certificate https://raw.githubusercontent.com/engintron/engintron/master/engintron.sh; bash engintron.sh install
Click here for more about Engintron

Install Softaculous

Step 1Download the Softaculous installer
wget -N http://files.softaculous.com/install.sh
Step 2Set permissions
chmod 755 install.sh
Step 3Run the Softaculous installer
./install.sh

SSL Related Notes

Activate Let's Encrypt on cPanel's AutoSSL
/scripts/install_lets_encrypt_autossl_provider
Check SSL Certificates
/usr/local/cpanel/bin/checkallsslcerts

Fix Missing SSL

This can often happen if your hostname changes and the SSL certificate hasn't been reissued for the correct hostname. First verify your hostname is correct by entering the word 'hostname' into the command line. If it's incorrect, fix it by entering 'hostname whateverhostname.whateverdomain.com'. Next, follow these steps.

Step 1Create a file
touch /var/cpanel/ssl/disable_service_certificate_management
Step 2Run Check All SSL Certs
/usr/local/cpanel/bin/checkallsslcerts
Step 3Remove the file you made
rm /var/cpanel/ssl/disable_service_certificate_management
Step 4Run Check All SSL Certs again
/usr/local/cpanel/bin/checkallsslcerts

cPanel Logs

Access Logs
/usr/local/cpanel/logs/access_log
Account transfers and miscellaneous logs
/var/cpanel/logs
Auditing log (account creations, deletions, etc)
/var/cpanel/accounting.log
Backup logs
/usr/local/cpanel/logs/cpbackup
Brute force protection (cphulkd) log
/usr/local/cpanel/logs/cphulkd.log
Cpanel dnsadmin dns clustering daemon
/usr/local/cpanel/logs/dnsadmin_log
Cpanel taskqueue processing daemon
/usr/local/cpanel/logs/queueprocd.log
Database-related activities
/usr/local/cpanel/logs/setupdbmap_log
EasyApache build logs
/usr/local/cpanel/logs/easy/apache/
Error log
/usr/local/cpanel/logs/error_log
Installation log
/var/log/cpanel
License updates and errors
/usr/local/cpanel/logs/license_log
Locale database modifications
/usr/local/cpanel/logs/build_locale_database_log
Login errors (CPSRVD)
/usr/local/cpanel/logs/login_log
Munin logs
/var/log/munin
Panic log
/usr/local/cpanel/logs/panic_log
Per account bandwidth history (Cached)
/var/cpanel/bandwidth.cache/{USERNAME}
Per account bandwidth history
(Human Readable)
/var/cpanel/bandwidth/{USERNAME}
Service status logs
/var/log/chkservd.log
Tailwatch driver tailwatchd log
/usr/local/cpanel/logs/tailwatch_log
Update analysis reporting
/usr/local/cpanel/logs/updated_analysis/{TIMESTAMP}.log
Update (UPCP) log
/var/cpanel/updatelogs/updated.{TIMESTAMP}.log
WebDisk (CPDAVD)
/usr/local/cpanel/logs/cpdavd_error_log
Website statistics log
/usr/local/cpanel/logs/stats_log

cPanel Apache Logs

Apache restarts done through cPanel and WHM
/usr/local/cpanel/logs/safeapcherestart_log
Domain access logs
/usr/local/apache/domlogs/{DOMAIN}
Processing of log splitting
/usr/local/cpanel/logs/splitlogs_log
suPHP audit log
/usr/local/apache/logs/suphp_log
Web server and CGI application error log
/usr/local/apache/logs/error_log

cPanel PHP-FPM Logs

PHP-FPM implementation's errors
/usr/local/cpanel/logs/php-fpm/error.log
Scripts that run unusually slow for a user
/var/cpanel/php-fpm/USER/logs/slow.log
User error log
/var/cpanel/php-fpm/USER/logs/error.log

cPanel Email Logs

Delivery and receipt log
/var/log/exim_mainlog
Incoming mail queue
/var/spool/exim/input/
Log of messages rejected based on ACLS or other policies
/var/log/exim_rejectlog
Unexpected/Fatal error log
/var/log/exim_paniclog
IMAP, POP login attempts, transactions, fatal errors and spam scoring
/var/log/maillog or /var/log/messages
Mailman
/usr/local/cpanel/3rdparty/mailmain/logs
Horde
/var/cpanel/horde/log/
RoundCube
/var/cpanel/roundcube/log/
SquirrelMail
/var/cpanel/squirrelmail/

cPanel MySQL Logs

MySQL error log
/var/lib/mysql/{SERVER_NAME}.err
MySQL slow query log (if enabled in my.cnf)
/var/log/slowqueries
MySQL upgrade log
/var/cpanel/logs/mysql_upgrade.log