Archive for the ‘cPanel’ category

cPanel Log Locations

July 29th, 2010

cPanel Log File Locations

This is a shortlist of various log files for various applications on your Cpanel VPS.

cPanel Installation Logs:
/var/log/cpanel-install-thread0.log

Apache:
/usr/local/apache/logs/access_log
/usr/local/apache/logs/error_log

Apache domlogs:
/usr/local/apache/domlogs/example.com

Apache SUEXEC Logs:
/usr/local/apache/logs/suexec_log

MySQL
/var/lib/mysql/hostname.err

BIND (named) Log:
/var/log/messages

Exim
/var/log/exim_mainlog
/var/log/exim_paniclog
/var/log/exim_rejectlog

Courier or Dovecot IMAP
/var/log/maillog

Tomcat Logs:
/usr/local/jakarta/tomcat/logs/catalina.err
/usr/local/jakarta/tomcat/logs/catalina.out

cPanel Access Log:
/usr/local/cpanel/logs/access_log

cPanel Error Log:
/usr/local/cpanel/logs/error_log

cPanel License Log:
/usr/local/cpanel/logs/license_log

Stats Execution Logs:
/usr/local/cpanel/logs/stats_log

ChkServd (cPanel Monitoring Daemon) Logs:
/var/log/chkservd.log

cPHulkd
/usr/local/cpanel/logs/cphulkd.log

cPanel Backup Logs:
/usr/local/cpanel/logs/cpbackup/*.log

Pure-FTP
/var/log/messages
/var/log/xferlog (symlinked to /usr/local/apache/domlogs/ftpxferlog)

Cron Logs:
/var/log/cron

SSH Logs:
/var/log/secure

ModSecurity:
/usr/local/apache/logs/modsec_audit.log
/usr/local/apache/logs/modsec_debug_log

  • Share/Bookmark

Troubleshooting cPanel License Issues

July 29th, 2010

If you get an error message that your cPanel instance is not activated, and you believe this to be in error, here are some steps for troubleshooting:

1. Re-check in with the license servers:
/usr/local/cpanel/cpkeyclt

If you see the following, you’re in good shape:

# /usr/local/cpanel/cpkeyclt
Updating cPanel license...Done. Update succeeded.
Building global cache for cpanel...Done

2. If that doesn’t work, you’ll want to go to the cPanel License Verification System to ensure your license is still valid.

3. If the IP is licensed properly, check the server to see if cPanel is detecting the correct IP address for your install:
# curl cpanel.net/apps/myip/

Running that command should return your base IP address. If it doesn’t, then there is a networking issue, or the wrong IP address is licensed.

4. If all else fails, open a ticket with cPanel Customer Service.

  • Share/Bookmark

info [rebuildhttpdconf] User ‘username’ data set has no ‘main_domain’ key.

May 21st, 2010

Error: info [rebuildhttpdconf] User ‘username’ data set has no ‘main_domain’ key.

Solution: Check to see if there is a file called “main” for the user(s) affected users in /var/cpanel/userdata/username.

If it’s not present, verify the domain exists in httpd.conf, and run /usr/local/cpanel/bin/userdata_update to recreate the “main” file based off the apache configuration.

  • Share/Bookmark

The update server is currently updating its files.

May 10th, 2010

When running “upcp”, you may see the following:

"The update server is currently updating its files."
"It may take up to 30 minutes before access can be obtained."
"Waiting 510 seconds for access to the update server....."

This means that the developers are pushing a new build of cPanel to the update servers. The upcp script will continue to run, and will retry the update periodically until the build is uploaded and available for download.

  • Share/Bookmark

info [rebuildhttpdconf] User ‘username’ data set has no ‘main_domain’ key.

May 3rd, 2010

Error:

info [rebuildhttpdconf] User 'noothna' data set has no 'main_domain' key.

Check /var/cpanel/userdata/username/main and main.cache to verify it has the necessary content. Check another domain’s main and main.cache accounts to verify what you should be seeing there.

  • Share/Bookmark

How to Restart Mailman

May 3rd, 2010

Currently, cPanel does not include a restartsrv_mailman script in /scripts. Until they do, you can use the following:

cpanel# /usr/local/cpanel/3rdparty/mailman/bin/mailmanctl -s restart

Or you can restart the cpanel service, but that’s overkill.

  • Share/Bookmark

How to Uninstall cPanel (no, not really)

April 22nd, 2010

You shouldn’t try to uninstall cPanel (reinstall your OS), and the cPanel “uninstall” script reenforces that:

# cat /usr/local/cpanel/uninstall

#!/bin/sh
# Uninstall script for Cpanel
rm -f "/usr/local/cpanel/uninstall"
#### END OF UNINSTALL
echo "Cpanel has been uninstalled."

  • Share/Bookmark

How to Install cPanel DNSonly

April 22nd, 2010

Installing cPanel DNSonly should only be done on a fresh installation of a supported OS.

cd /home
wget http://layer1.cpanel.net/cpanel-universal-dnsonly-install.sea
sh cpanel-universal-dnsonly-install.sea
cd cpanel-universal-dnsonly-install
sh install

  • Share/Bookmark

cPanel and WHM Plugins / Addons

April 10th, 2010

I thought I’d put together a quick post with links to various cPanel & WHM plugins. I haven’t used all of these, so don’t consider this an endorsement of any kind. :) For now, check out the cPanel forums apps and plugins area which in you might find better reviews.

Eventually I’ll post a review of these (at least the free ones) as time allows.

Free WHM Plugins

  • ConfigServer.com Firewall – manages iptables, handles brute force attacks, and much more. This is one that I’ve used, and definitely recommend.
  • ConfigServer.com ModSec Control – modify ModSecurity rules on a global or per-user basis, and view logs.
  • NDCHost’s Clean Backups – clean backups for accounts which don’t exist after a certain period, automated, or on a manual basis.
  • NDCHost’s Account DNS Check – Checks and reports domains which don’t resolve to the assigned IPs in http.conf.
  • ConfigServer.com Explorer – provides a “File Manager-like” interface allowing you access to your filesystem via GUI.
  • ConfigServer.com Mail Queues – Stats and management of your server’s mail queue.
  • ConfigServer.com Mail Manage – Management of your email accounts, important statistics, and displays of accounts over quota, over a certain size, etc.

Pay WHM Plugins

  • ConfigServer.com’s eXploit Scanner – active scanning of your server to prevent exploits.
  • NDCHost’s Secondary MX – Turns a cPanel DNSonly install into a backup MX server.

Free cPanel Plugins

  • cPanel’s cPAddons – Allows installation of several popular PHP scripts. Installed via WHM >> Install cPAddons.

Pay cPanel Plugins

  • Netenberg’s Fantastico – Installs over 50 popular PHP scripts [List]. The vast majority are free, open-source software, though a few require a license.
  • Softaculous – over 130 PHP scripts.
  • Share/Bookmark

BSD::Resource not available

January 7th, 2010

# /scripts/perlmods -l | grep -ai "BSD::Resource"

not listed?
# /scripts/checkperlmodules --full

  • Share/Bookmark

cPanel Web Site Hosting by IntraHost