How to install cPanel/WHM on CentOS

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

http://brandonlong.me/blog/tutorials/cpanel/how-to-install-cpanel-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.
cpanelinstall_step1

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 http://layer1.cpanel.net/latest

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

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.
cpanelinstall_step3

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

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:
cpanel6

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

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s