There are some cases where you may want to disable stats programs from running for certain users. To do so, open up their user file in /var/cpanel/users and add these lines: STATGENS=WEBALIZER,AWSTATS,ANALOG skipanalog=0 skipawstats=1 skipwebalizer=0 Of course, 1=yes and 0=no, and if the stats program is not enabled in the server it won’t run at… Continue reading Disable Stats Programs for a User
Individually Convert MBOX to MailDir – cPanel
When migrating user emails manually from an mbox server to a maildir server, it’s usually preferred to run a partial conversion using the convert2maildir script. However, in some cases you may want to do a mailbox individually to either do it quickly or to restore it to another location. cPanel has a built-in script for… Continue reading Individually Convert MBOX to MailDir – cPanel
Remove All Spam and Trash from Server
A buildup of spam and trash in user accounts can occupy several gigs worth of space. To easily remove spam and trash from your users’ accounts, you can use the following commands: Maildir/Courier-IMAP: rm -rf /home/*/mail/*/*/.spam/* rm -rf /home/*/mail/.spam/* rm -rf /home/*/mail/*/*/.Trash/cur/* rm -rf /home/*/mail/*/*/.Trash/new/* CPPOP: rm -rf /home/*/mail/*/*/spam rm -rf /home/*/mail/spam rm -rf /home/*/mail/INBOX.Trash… Continue reading Remove All Spam and Trash from Server
Unactivated License File Error
When logging into cPanel or WHM you see the following error: Unactivated License File To update the license file, run this command: /usr/local/cpanel/cpkeyclt This is assuming that the server’s IP has a valid cPanel license.
Upgrading ClamAV – cPanel
Sometimes cPanel can be late with pushing out critical updates for third-party software. At the time of this writing, cPanel’s latest release of ClamAV is 0.91 which was determined to have a major security exploit, so all users are encouraged to update to 0.92. This upgrade guide assumes that you used cPanel’s plugin installer to… Continue reading Upgrading ClamAV – cPanel
Upgrading to Perl 5.8.8 – cPanel
Perl 5.8.8 has a lot of improvements over 5.8.7, and is highly recommended for use on cPanel 11. Upgrading is simple: wget http://layer1.cpanel.net/perl588installer.tar.gz tar xfvz perl588installer.tar.gz cd perl588installer ./install
How to Change The ‘Postgres’ User Password
Log in as root su postgres psql -d template1 -U postgres alter user postgres with password ‘newpassword’; \q Then as root run ‘passwd postgres’ and reset the password there as well in order to enable the login from command line.
The [pretty much] Complete Guide to Installing ffMPEG and Audio Binaries
I know you’ve provably seen a lot of guides on how to install ffMPEG, but I’ve noticed that most of them are incomplete and don’t cover the possible issues that can arise during installation. I’ve installed ffMPEG on dozens of servers and have devised a standardized procedure on what I feel is the best way… Continue reading The [pretty much] Complete Guide to Installing ffMPEG and Audio Binaries
Creating and Installing an SPF Record
Have you ever received a bounce for spam that was sent by you…only it wasn’t sent by you? Email spoofing is one of the easiest concepts to understand for us, but the hardest to explain to end users who confuse spoofing with email hacking and hijacking. The way I explain it to our customers is… Continue reading Creating and Installing an SPF Record
Disabling Apache Server Signatures
Apache by default puts a “signature” at the end of error pages and directory listings…here is an example of what this looks like: Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7a DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.5 Server at missysadmin.com Port 80 Now, some people may not want to broadcast what type of server they are running or what’s on… Continue reading Disabling Apache Server Signatures