Installing cPanel/WHM on CentOS 6

cPanel is a linux based web hosting control panel with a graphical interface for managing web hosting accounts. In this guide we're using the latest CentOS 6.6 release with no additional software installed.

First lets update the initial system packages and install wget and perl, which is needed to complete the installation.
yum update -y
yum install perl -y
yum install wget -y

Now lets go ahead and make sure our hostname is a fully qualified domain name, if it's not, we'll get errors along the way. Type "hostname" in SSH to check your current hostname.
[root@purevoltage ~]# hostname
test.purevoltage.com
Our hostname is currently "test.purevoltage.com" for this guide. This is a FQDM hostname and will work with cPanel. To change your hostname run the following command:
hostname your_domain.com

Now lets go ahead and install cPanel!

Lets download the cPanel/WHM installer script.
wget http://httpupdate.cpanel.net/latest

Lets run the installer script now.
sh latest
Now the installer will start and the rest of the install task is fully automated. This will download the required packages for cPanel and install them, so this may take some time, be patient!

Once the installation script is completed you can navigate to the cPanel/WHM login pages in your web browser. The default WHM port is 2087, cPanel is 2083. For this example we'll say our server IP is "127.0.0.1", so we'll enter "https://127.0.0.1:2087" into our browser to access the WHM login page. Enter your server username and password, by default, if you're using the root user your username will be "root" and your password will be your root password.

You're done!


  • 5 Users Found This Useful
Was this answer helpful?

Related Articles

Installing Multicraft on CentOS 6

This guide will show you how to install the Multicraft control panel and server daemon on CentOS...

Installing EPEL Repository for CentOS 5, 6, 7

The EPEL repository is a separate repository which provides many additional software not provided...

Install VNC Server and Desktop on CentOS 6

By default your server would probably be setup as a headless (server) version, without a desktop...

LAMP (Apache, MySQL, PhpMyAdmin) Install on CentOS 6

This guide will show you how to install a basic LAMP stack setup on CentOS 6. LAMP stands for...

LAMP (Apache, MySQL, PhpMyAdmin) Install on Ubuntu 14.04

This guide will show you how to install a basic LAMP stack setup on Ubuntu 14.04. LAMP stands for...