Day: January 23, 2010

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…