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 http://httpupdate.cPanel.net/latest

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:

http://your-server-ip:2086

OR

https://your-server-ip:2087

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:

Step1:


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.

Step2

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.

Capture5

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.

Capture6

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.

Capture7

Step 5:


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

Capture8

 

Capture9

‘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:

Capture10

Step 6:


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

Capture12

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

Manish Kumar Sharma

An engineering graduate with an experience of over a decade in Linux platform, Manish loves spending his spare time researching open source technologies with respect to Linux and watching movies. The senior Linux system admin handles all escalated system issues and loves guiding new team members.
Manish Kumar Sharma

Latest posts by Manish Kumar Sharma (see all)