How to install cPanel/WHM on CentOS

found this great howto for setting up cPanel/WHM on centos.

Hello Folks,

Today we will be starting with the basics, how to install cPanel/WHM on CentOS. I will be using CentOS 5.5 64-bit as my base OS; this will be the same for RedHat and for 32-bit also.

First we need to start with a fresh install of CentOS, you don’t need to install anything like Apache, MySQL, etc as the cPanel installer will take care of it all for us.

When reading this tutorial, I am going to assuming you know the basics of a shell (aka using SSH as some would say, if your running Windows I recommend PuTTy).

Ok, the first step is to make sure you are logged into your shell, the screen should look something similar to below.

Once we are both there, the next command will be to make the ‘cpinstall’ folder in your /home directory, you can do that by running the code below.

# mkdir /home/cpinstall

This will make the necessary folder on the file system for us to start with, next we will want to move, or as some will know it as ‘cd’ into that folder. You can do that by running the below command.

# cd /home/cpinstall

Now that we are there, we will need to download the appropriate file to start the cPanel install. This file is always updated, so by running the below command you’ll always get the newest version of cPanel installed on your server/VPS.

# wget

If everything goes well with that, your shell window will look something like this.

Now that we are upto this point, we can start the install process. Depending on how fast the system is, and how fast your network connection is, this can take anywhere from 30 minutes to 4 hours. Usually for me, I can say it takes about 2 hours. You can invoke the installer by running the command below.

# sh latest

After running that code, you should see a cPanel logo come on the screen and the install will start. There will be no need for any user intervention unless there is a problem. Once the screen looks like below you are safe to walk away.

Once the install is complete your SSH screen will look something like this:

In my case, it was telling me I need to restart my server. Once restarted, you can access the WHM by going to http://IPHERE:2086.

Once this is done, you’ll get a screen like this:

Your default login username is ‘root’, and your password is your root password


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s