Pages

Thursday, February 28, 2013

How to Install cPanel/WHM on CentOS VPS

cPanel/WHM installation on your VPS or dedicated server is very easy. Just follow the steps below & you are done. Remember that you need fresh CentOS installation prior to installing cPanel/WHM.

1. Run your preferred SSH client such PuTTY. Connect to your server & login as “root”.
2. Download & install cPanel/WHM by running the following commands one by one.

Installing Perl

First we need to install Perl so the cPanel installation can run.  We will install the version of Perl that is currently available on the YUM software repositories by using the following command.   It is assumed that you are running this command as a non-root user with sudo permissions.
This command downloads and installs Perl from the YUM repository:

# cd ~
# sudo yum install perl


Downloading cPanel Installation Files

Now you need to download the cPanel installation script. This small file will connect to the cPanel site and download the latest version of their software.
Use the following command to download the script:

# wget http://layer1.cpanel.net/latest

cPanel Installation

 

Now we are ready to install cPanel. Please be prepared to leave your SSH connection open for several hours without interruption. If your connection is interrupted it could cause the installation to fail!  This may require that you change the Sleep or Powersave settings on your local machine.
Use this command to install cPanel:

# sudo sh latest

After the install is completed you should see:

cPanel Layer 2 Install Complete

Logging In

Once the installation complete, login to your WHM as root to configure,
http://yourip:2086 or
https://yourip:2087

This will bring up a login window. Type in root for the user name and enter your root password and click OK.

Step 1:  Initial Setup - End User License

If you agree to the End User License Agreement, click 'I agree/ Go to Step 2'

Step 2:  Initial Setup – Contact Information

  1. Under Contact Information, go ahead and fill in your e-mail address and any other contact information you feel is necessary. An e-mail address is required.
  2. Under Hostname, please verify that your hostname is listed correctly. It should be a fully qualified domain name (something.domain.com).
  3. Click the Save & Go to Step 3 button to continue.

Step 3:  Initial Setup – Network Interfaces

On this screen we will not make any changes. Simply click Skip This Step and Use Default Settings at the top.

Step 4:  Initial Setup – Nameserver Configuration

Now you need to make a couple of decisions. The first decision to make is todetermine if you will run your own nameservers or not.
If you plan on running your own nameservers, please select the type of server you'd like to run. We recommend running BIND as it is most commonly used.
Next, you need to list your nameservers.  If you are choosing to run your own nameservers, then you will need to list your server's Fully Qualified Host Name (FQHN) here.
If you are not going to run a nameserver select Disabled.
If you are choosing to use a third-party source for DNS, then you will need to enter their information. This is shown to customers when they are setting up domains in cPanel.
If you are running your own nameserver you might want to create a DNS record in your Cloud Server Control Panel for your server. A suggested name would be 'ns' or 'ns1'. After you have completed these steps, click 'Save & Go to Step 5'.

Step 5:  Initial Setup - FTP/Mail Configuration

Next we need to setup the FTP services. We recommend using the default option (Pure-FTPD).
You also need to configure mail services. Use the default option for this selection as well.
Click 'Save & Go to Step 6' to continue.

Step 6:  Initial Setup Quotas

Leave the default option selected (Use file system quotas) for quotas.
Click 'Finish Setup Wizard' in order to finish the installation.
Congratulations!  Your cPanel Installation is now complete!


No comments:

Post a Comment