Archive for the ‘WHM’ category

Quotas will not be enabled on /home to prevent performance degradation.

May 21st, 2010

Error: Quotas will not be enabled on /home to prevent performance degradation.

You may see this when running /scripts/initquotas or /scripts/fixquotas. Either there’s something wrong with your /etc/fstab file that cPanel couldn’t correct, or you have your backups set to provision to a folder in /home, which is not recommended. This disabling of usrquota on /home is intentional if backups are set to go to /home.

# grep BACKUP /etc/cpbackup.conf

You can check the configuration in WHM >> Configure Backups, or via SSH with:

root@main [/home/ihost/public_html/skoal]# grep BACKUPDIR /etc/cpbackup.conf
BACKUPDIR /home/somefolder

If you see something similar to the above, quotas are not going to work for you. You’ll want to set backups to be delivered offsite via FTP, or to another partition, ideally a completely separate hard drive in case of hard drive failure.

Share

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

Locked out via iptables? Autofix it!

April 10th, 2010

If you’ve locked yourself out of your server via iptables, or made some incorrect updates to your sshd_config, but you can login via WHM, autofixer is about to be your best friend. If you can’t get into WHM, this is not going to be something you can utilize.

https://yourdomain.com:2087/scripts2/doautofixer?autofix=iptablesflush

This script will do a flush of your iptables chains, allowing you to login and correct your configuration.

https://yourdomain.com:2087/scripts2/doautofixer?autofix=safesshrestart

This will terminate your existing sshd daemon, and start SSH on port 22, or, if that’s your normal default port, it will start sshd on port 23, so you can login and make your corrections.

Other autofixer scripts are listed at http://httpupdate.cpanel.net/autofixer/ and can be run by inserting them after the following URL, after logging into WHM:

https://yourdomain.com:2087/scripts2/doautofixer?autofix=

Share

cPanel Community Support

September 24th, 2009

There are a few avenues of support outside of cPanel Technical Support, where you can ask other cPanel Administrators for support:

1. Forums – http://forums.cpanel.net

2. IRC – On EFNET, join #cpanel

Share

Running cPanel in a NAT Environment with Cisco ASA/PIX Firewalls

September 24th, 2009

As we all know, cPanel does not support NAT at this time. I’ve heard that this may change in the future, but for now we need to make do with what we’ve got.

It’s no problem to have Apache listening on a private IP address because the PIX or ASA handles the public to private IP address translation.  But for DNS, when a zone is queried, it can’t provide a private IP address and expect an outside server to be able to resolve it.  That’s where the fixup, static, and alias commands come in handy.

There are a few IOS rules that will help out immensely with cPanel and DNS translation.

Cisco to the rescue! This will enable the firewall to provide address translation to DNS packets:
fixup protocol dns maximum-length 512

A static NAT mapping must exist, associating the public & private IP:
static (inside,outside) cpanelserver.ext cpanelserver.int 255.255.255.255

An alias must be created which allows translation inside the private network:
alias (inside) cpanelserver.int cpanelserver.ext 255.255.255.255

Share

cPanel Web Site Hosting by IntraHost