Hi there, cPanel is an online Linux-based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. This tutorial will show you the steps involved to install cPanel / WHM on CentOS 7.
There are some steps that need to be taken before we begin the install. First we need to stop and disable the network manager as cPanel won’t install with it enabled. To do so run the following two commands:
- sudo service NetworkManager stop
- sudo chkconfig NetworkManager off
Next set your hostname, cPanel will look for one with two dots in the name for example test.testsite.com. Run the below command but be sure to set your hostname.
- hostnamectl set-hostname mysite.darren.com
Now restart your network just to insure all changes take effect:
- sudo service network restart
Next insure you have perl installed by running
- sudo yum install -y perl
Now move into the home directory by running:
- cd /home
Now lets get the cPanel install script.
- sudo wget https://securedownloads.cpanel.net/latest
When the script is donwloaded run:
- sudo sh latest
The script will take 30 to 40 minutes to run when the script has run, open your browser and navigate to your IP address with the port 2087 for example:
When prompted to login enter root and your root password that you use for your CentOS machine.
Once logged in follow the prompts to complete your installation.
A full video tutorial can be seen below: