How to Install WHM & cPanel on CentOS Virtual private

 

cPanel is well-popular and widely recognized control panel tool available for web hosting these days. It is mostly used and widely popular because of its easy to use interface, strong features and accessibility for all type of web hosting.

In this tutorial we are going to discuss how to install WHM and cPanel on CentOS Linux VPS server.

cPanel is developed in perl language. So first of all we have to install perl before the installation of cPanel.

yum install -y perl



Once the installation process completed, you will discover something similar to the below screen:



Once Perl is installed, the next step you need to take is verify the correct hostname set for your Linux VPS server. You can run the command given below to check the valid hostname.

Hostname




Once you run the hostname command in your command prompt, you will discover the hostname of your server on the screen.

In the event that you don't know for the hostname or on the off chance that you do not have the hostname you can utilize a temporary hostname for your Linux VPS server. When cPanel is installed, you can a short time later alter your hostname to the right one.

hostname server.example.com

Installation of cPanel

First of all you need to install the screen to begin the installation of cpanel tool. The screen will assist us to keep our procedure going, in case we lose the connectivity to the web server.

Run the following command to install screen and wget:

yum install wget screen -y



When the installed of Screen is done, you can find the installation window something similar to:

Begin a new session running following command:

clear

We are going to give the name to our screen as cPanel installation.,

screen -S cPanel Installation

Now screen in installed successfully, now we are ready to begin with our cPanel installation.

Install cPanel & WHM with the command

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

Install the DNS only version of cPanel with the following command

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

 

Presently you have downloaded your requested we are prepared to begin the cPanel Installation script running.

sh latest

The command given above will begin executing the cPanel installation.

You can detach the screen with the following command.

control-a-d

You can detach the screen by running the following command.

screen -r

So you can re-connect the screen with the above command, and you can check for the finishing of the cPanel Installation.

Once your cPanel Installation is finished, you can get to and finish the Initial setup of installing cPanel on your Linux VPS server.