How To Install cPanel on Centos 6

cpanel-logo

What is cPanel?

cPanel is the industry standard for allowing you manage and administer your Linux server via a nice and convenient web GUI. The installation of this software allows you to do most complicated command line tasks with the click of a button. cPanel is a commercial software that has a monthly license fee for its use.

Install cPanel

Setup

Before we begin installing cPanel there are a few pieces of software we need to install first. Run the command

yum install screen wget nano perl -y

This will make sure all the required software is installed. Once you have done this we need to make sure the hostname of your server is setup. cPanel is very picky about this and will refuse to install if it is not set. Run the command

hostname <your domain here>

ex. server.example.com (Can be used if you don’t have a domain)

Start Installation

The installation for cPanel is quite easy however it will take quite a long time to run. Keep in mind before you start the installer than cPanel must be installed on a fresh brand new OS and cannot be removed without reinstalling the OS of your machine.

To start the install and to make sure it continues to run in the background run the command

screen

This opens a new terminal that will continue to run even if you disconnect. Now download the install file

wget -N http://httpupdate.cPanel.net/latest

Then start the installer

sh latest

As mentioned before this install may run for hours before it is completed. From here we can close out of the screen using the controls ctrl + a + d. If you want to reconnect to the screen to check on the progress you can run the command

screen -r

Final Configuration

Once the install has completed you will be able to connect to cPanel by going to <your ip>:2086 in your web browser. It will look similar to 192.168.1.1:2086. You will be prompted for a login

Username: root
Password: <your root password>

You will be walked through a few final configuration steps and then logged into WHM to setup and manage your server as you choose.

cPanel is now fully installed

 

CC BY 4.0 This work is licensed under a Creative Commons Attribution 4.0 International License.

Alex Wacker has written 16 articles

I am the founder and owner of Subnet Labs LLC. Impact VPS is one of our VPS brands. Linux, virtualizaton and the internet amaze me and I enjoy learning new things every day about them.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>