c99 Shell Scripts are one of the main headache for almost all cPanel server administrators even though they use mod_security and all. This small snippt would help you to find those possible shell script. You can open a new ‘screen’ session and execute the code and close the window. You can then have a nice…Continue reading Find c99 Shell Scripts on cPanel Server
Have you ever wanted to force the domain to be viewed with (or without) the www in front? Here’s a simply way to do so. You just have to add the following lines in the .htaccess of your public_html for the domain you want this done on. To change from www to non-www (This means…Continue reading How to redirect non-www to www, and www to non-www
Monit is a free open source utility for managing and monitoring, processes, programs, files, directories and filesystems on a UNIX system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations. You can use Monit to monitor daemon processes or similar programs running on localhost. Monit is particular useful for…Continue reading Installing Monit & Restart Apache Automatically
This code snippet is the simplest way to add SPF and DomainKeys on a cPanel server for all the accounts [bash] for i in $(ls /var/cpanel/users) do echo Installing Domain Keys on $i /usr/local/cpanel/bin/domain_keys_installer $i; echo Installing SPF Records on $i /usr/local/cpanel/bin/spf_installer $i; done [/bash]
Hello One of the major problem webhosts facing is the IP Block. Clients IP may accidentally get blocked due to several reasons such as Invalid cPanel Login attempt, or port scanning or some other reason. The villain (or hero ? ) is the firewall software that we use, in my case, ConfigServer Firewall ( CSF…Continue reading Automatic CSF IP Remover!
Hello ! Roundcube 0.4 is just released! However, cpanel is still using the old version. So I’ve decided to update my installation with this new edition. Let’s start All you have to do is to run these commands to update [bash]/usr/local/cpanel/bin/update-roundcube –force cd /usr/local/cpanel/base/3rdparty/ mv roundcube roundcube-backup wget http://softlayer.dl.sourceforge.net/project/roundcubemail/roundcubemail/0.4/roundcubemail-0.4.tar.gz tar -zxf roundcubemail-0.4.tar.gz mv roundcubemail-0.4 roundcube…Continue reading Upgrading to RoundCube 0.4 on cPanel Server
One of our cPanel server was running fine without any problem since an year. Suddenly cPanel started sending me emails saying ‘Possible Hard disk Failure’ . Contacted the datacenter to inquire more about this error and perform a log auditing. Dc advised to take the server offline for full hardware test so we did it.…Continue reading A smarter way to migrate two cPanel servers