Changing time to IST

Client wrote in today asking me to change the time setting on his computer to IST (India Standard Time). In order to change this, login via SSH and then cd /etc/ once there, create a link to the following file by running the following command etc >> ln -sf /usr/share/zoneinfo/Asia/Calcutta localtime This will now show…


Cpanel required ports list

Port Service Protocol Direction Notes 20  ftp  tcp inbound/outbound 21  ftp  tcp, udp inbound/outbound 22  ssh  tcp  inbound 25  smtp  tcp inbound/outbound 26  smtp  tcp inbound/outbound 37  rdate  tcp  outbound 43  whos  tcp  outbound 53  DNS  tcp, udp inbound/outbound Inbound only needed if you run your own DNS server 80  http  tcp inbound/outbound 110  pop3…


Migrate cPanel accounts

From http://www.justin-cook.com This tutorial explains a simple, straightforward method for migrating cPanel accounts from one server to another. You can use this method to transfer accounts from an old server to a new one or help customers move from another host move to your host. This does not even require root access on one end…


Add temporary swap

While it would be ideal if every server had plenty of RAM, in the real world that does not happen. If for some reason you have a server with too little SWAP or you are hitting the max of the swap here is a quick hack which will create a 2Gb container file then use…


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…