Rackspace Community

CentOS/REL - Installing cPanel & WHM 11.24

Article ID: 61

Last updated on November 25, 2014

Authored by: Rackspace Support

This tutorial will walk you through installing cPanel and WHM (WebHost Manager) 11.24 on your CentOS or Red Hat Enterprise Linux Cloud Server. This tutorial is only one example, as there are multiple ways that you can configure cPanel during.

NOTE:cPanel is a 3rd party software provider. Rackspace Cloud does not distribute or support cPanel, WHM, or any related software. You can read more about purchasing a licensed version of cPanel from their website.

Please be sure that you followed the setup instructions for CentOS before starting this tutorial: CentOS - Setup

It is expected that you are installing this on a CLEAN server. You should not have any other applications installed on your server or it could cause the cPanel installation to fail. If you have installed other applications please use the Rebuild feature in the Control Panel to re-image your server from the base CentOS image provided by Rackspace Cloud.

This setup will take several hours to complete. On a 256MB Cloud Server, it will take roughly six hours to complete. Servers with more memory will take less time.

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

Now we are ready to login for the first time.

Point your web browser to port 2086 on your Cloud Server by opening the IP address directly in a browser address bar:

http://12.34.56.78:2086/

Replace 12.34.56.78 with your server's IP address.

If your site is SSL enabled and you would like to connect securely use the following URL instead:

https://12.34.56.78: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

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.

Under Hostname, please verify that your hostname is listed correctly. It should be a fully qualified domain name (something.domain.com).

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.