If you have a fully automated cPanel/WHM setup method used to deploy a large number of servers, you’ve probably found it to be annoying that upon loading WHM for the first time, you’re greeted with a setup wizard that you have to click through. To skip this wizard, all you need to do is touch…
Read more
You can allow users to use their own configuration file for AwStats in case they are in need of customizations not provided by the server’s main config. To enable this option, add the following to /etc/stats.conf: allow_awstats_include=1 Alternatively, you can go to WHM > Statistics Software Configuration, and click on Allow Awstats configuration Include file…
Read more
There was a situation today where I had to mass-move a bunch of accounts from one partition to another. WHM’s Rearrange an Account function does this one account at a time, but to move over 50 of them, a more scripted solution was necessary. Here’s how I did it on a live server without causing…
Read more
cPanel currently has four templates that are visible to your users: Default website: Appears to visitors who navigate to a site that points to the server but isn’t configured in Apache Account move: Appears to visitors who navigate to a site that has moved Connection selection: Appears to visitors who navigate to a site that…
Read more
We’ve developed our first cPanel 11.25 cheat sheet, now available for your downloading pleasure. The sheet is comprised of common file, script, and configuration locations for help at a quick glance. [dm]1[/dm] More cheat sheets will be available soon! Check back on our Cheat Sheets page for more.…
Read more
Cpanel 11.25 restructured the way that bandwidth RRD files are being processed, in that each service has two RRD files – one for peak, and one for rate. The “peak” file is used for long timespans of a month or longer, and the “rate” file covers a timespan of a week or less. The following…
Read more
CPanel utilizes a script called “optimizefs” that removes the atime attribute from certain files on the system. For larger servers, this can create a lot of i/o load for a problem that can be fixed simply by mounting your file systems with the noatim Metabolic Masterpiece e flag if your file system is ext2 or…
Read more
When hosting websites, whether as a mainstream hosting provider, a hobby, or to supplement another service, it’s your job to make sure your customers have access to technical support in case they need help. Customer support is one of the highest expenses that a web host can encounter. Just my making a few small changes,…
Read more
I wrote this nice one-liner for a user in the cPanel forums asking how to change all their current default addresses to :fail: – http://thecpaneladmin.com/files/changedefaultaddr.sh.txt Before you do anything like this, you should back up /etc/valiases. Keep in mind also that you can change the default address for new accounts in WHM > Tweak Settings.…
Read more
A common question we get from cPanel administrators is whether it’s Ok to remove /home/.cpan since, on many servers, it tends to grow to a size exceeding 1G. The short answer is yes – installation files. If you find that yours is occupying too much disk space, delete it, and run the following commands: perl -MCPAN…
Read more