cPanel or WHM is among the most appropriate tools around to administer servers and mange hosting through a convenient GUI rather than conventional CLI.

The prerequisites

  • Before WHM/cPanel installation, you need a freshly installed CentOS.

  • Do not install any other packages or libraries as they will break cPanel installation.

cPanel/WHM Installation

To install cPanel & WHM on your server, run the following commands:

root@server [~]# cd /home

root@server [~]# wget -N

Now execute this cPanel installation script using command below:

root@server [~]# sh latest

It is recommended that you run this script in screen mode as it will take nearly 2-3 hours for installation and if there is a break in connection, you may need to start from scratch.

Once cPanel installation is completed, you can access your WHM using URL given below:




how to install cPanel on centOS

Now log in with your root user and password.

When logging in to WHM for the first time, you will see the screen given below:

After logging in, there are few steps that you need to take to complete cPanel installation:


In the first step, you need to accept license agreement.

how to install cPanel on centOS Step1

Step 2:

In this step, you need to provide your email-ID. This email-ID is used for all types of cPanel alerts.


In resolver section you need to mention primary and secondary resolver. If you don’t have them, you can use google open resolver.

Now save all the information which you have provided, and go to step 3.


Step 3:

In this step, your server’s main IP address will be visible. If you have more than one IPs, you can add them here.


Now click on go to step 4.

Step 4:

In this step, you need to mention your name server which you want to use for this server.

Save and go to next step.


Step 5:

In this step, we select some services such as Bind, FTP, and Mail etc.




‘Cphulk’ brute force protection detects and blocks false password attack activities and blocks their IP for your server. You can enable/disable and configure it from this installation wizard.

Please see the snapshot below:


Step 6:

In last step, we need to select the default file system quotas.


Please select ‘Use file system quotas’ and click on ‘Finish Setup Wizard’ to complete the installation process. Once you are done with installation, WHM’s home page will appear.

how to install cPanel on centOS Step-6-2

Following WHM installation, we need to activate licenses. For it, login to your server via shell and run below command:

root@server [~]# /usr/local/cPanel/cpkeyclt

That’s it! You’re done 🙂

For now that’s all with CPanel and WHM installation, you can configure it with complete security and tweaking, also you can setup your web hosting environment easily.  If you face any problem with installation or require any other assistance like backups, migrations, restorations, and so on, you can simply contact us.

Till then, Stay connected with your web hosting provider for more exciting and interesting articles in future. Do leave your comments and suggestions below in our comment section.

Services ZNetLive offer:

Domain Names India

Shared Hosting India

WordPress Hosting India

VPS Hosting India

Dedicated Server India