Month: January 2010

Disable Direct Root Login

From http://24x7servermanagement.com Allowing the root user to login directly is a major security issue, we’ll show you how to disable it so you can still login as root but just not directly, reducing the security issue… This will force a hacker to have to guess 2 separate passwords to gain root access. (you do have…


Premature end of script headers

If you run into the infamous error: Premature end of script headers, there are four basic things that you may see in your browser when you try to access your CGI program from the web: 1) The output of your CGI program Great! That means everything worked fine. If the output is correct, but the…


cPanel Training resources

From cPanel Training Resources These training slides were originally created to accompany presentations given at the cPanel Conference, which occurs annually in Houston, Texas. They contain a wide variety of helpful information about cPanel and WHM. Each link includes information about troubleshooting techniques, security measures, new features, and more.. Training Slides from the 2006 cPanel…


Easy Linux Security :UPDATE

From http://www.servermonkeys.com ELS ELS stands for Easy Linux Security. ELS takes many of the tasks performed by our Administrators and puts it into an easy to use program for anyone to use. It is released under the GNU/GPL so it is free to use. This program is always being improved with new features and bugfixes,…


Is cron running?

In order to check and see if cron is running or not, run the following commands via ssh at the command line: tail -f /var/log/cron Will show the last 10 cron jobs that had been executed and will continue to watch the log for new crons that have started.


Setup external MX records in cPanel

If your domain is using external an mail server like Google mail for its pop and smtp activities, you need to make the following changes in your cpanel server. Go into WHM / DNS Functions / Edit a DNS Zone and select the domain > where it says; mail | 14400 | cname | domainname.com…


Disable Mod Security for a specific file or domain

There are several ways to disable Mod Security for a specific domain, or location within a domains pages. More often then not, when you add a new domain after installing mod_security, you will see apache 500 errors when you try to post or a client tries to post a response in a forum. This can…


Spamd keeps failing

If spamd keeps failing, SSH into the server and run the following commands (in order): ps auxfww | grep spamd kill -9 PID /scripts/perlinstaller –force Digest::SHA1 /scripts/fixspamassassinfailedupdate /etc/init.d/chkservd restart


View compiled apache modules

If Apache v2.x is installed on your server, you can view all of the modules compiled in with Apache by running the following command: httpd -l Also, you can use the following parameters. -v Print the version of httpd -L Output a list of directives together with expected arguments and places where the directive is…


Fatal error: Maximum execution time of 300 seconds exceeded with phpMyAdmin

PHPMyAdmin will not work for uploading large mysql databases. If you are working with phpMyAdmin and need to upload a large database you will often get the error “Fatal error: Maximum execution time of 300 seconds exceeded with phpMyAdmin”. This is because in the phpMyAdmin configuration there is a setting which causes phpMyAdmin to timeout…