Install cPanel / WHM On CentOS 7

How To Install cPanel / WHM On CentOS 7

How To Install cPanel / WHM On CentOS 7

Hi everyone, Welcome to TutsFx, and today I will be with you about installing cPanel on CentOS 7. This tutorial will show you how to Install cPanel / WHM On CentOS 7 and access it on your server’s dedicated IP address through the command line. It should be considered that it is better to follow all of the steps to prevent any probable issues.

cPanel installation is actually an easy task without any complexity, and as long as you follow all steps one by one, you won’t face any issues.

What Is cPanel?

cPanel, as its name implies, is a web control panel. cPanel provides you with the ability to manage Linux-based hosts. This control panel provides users with a wide range of features, and as a result, it has formed the most significant hosting control panel.
Users can create and manage their email addresses in cPanel and control domains, databases, various PHP versions, and almost all web server aspects.

As a result, this powerful control panel makes it possible to manage all of your hosting services in one place. cPanel was developed by a company of the same name and in the Perl programming language.
cPanel is a great, customizable control panel, which has done well over time and has a professional and active team behind it, which is a great help to cPanel users.

The cPanel’s reputation, popularity, and widespread use are due to its simple and understandable user interface. Everyone learns it quickly, and it is used more than ever to launch new websites in 2021.

Why CentOS 7?

As you may know, CentOS 8 is released, but there are some problems with installing cPanel. At the moment that I write this post, CentOS 7 is the most reliable and most compatible operating system to install cPanel. Here we provide cPanel/WHM VPS with CentOS with a reasonable price trial/licensed.

Minimum Resource Requirement To Install cPanel

  • A Linux VPS With CentOS 7 Operating System
  • 1 GB RAM
  • 1 core CPU 1.1 GHz
  • 20 GB Storage
  • Static IPv4

Connect To Bitvise SSH client


Pre-Requirements Of cPanel Installation

Before installing, I should mention that once you copied the commands, you can paste them by right-click inside the SSH connection

1- Update Centos 7

Use this command to update the server before installing cPanel:

yum update

You will be asked yes or not, that you should type y and press enter to proceed with the update.

2- Installing Perl

Perl is the language that cPanel has been written with.
Run the following command to make sure that Perl is installed on the server.

yum install perl

3- Installing Curl

The Curl is required to download the cPanel installation script; the following command can install the Curl:

yum install curl

4- Add Hostname

Cpanel requests for a hostname that should be in (FQDNFully Qualified Domain Name format. For example, in this topic, we will use, and instead of this, you should put your own hostname.
Here is the command to set it:

hostnamectl set-hostname

5- Disabling Network Manager Service

Network Manager service is used to connect computers; cPanel asks to remove this service or disable it when installing cPanel.

service NetworkManager stop
chkconfig NetworkManager off

6- Disable SELinux Temporarily

SELinux is the main security defender of the Linux Kernel, and it is better to be disabled to prevent any access issues when we install cPanel on CentOS Server. You can use the below command to disable it temporarily.

sudo setenforce 0

Installing cPanel With trial License

You can use this code to install WHM / cPanel.

cd /home && curl -o latest -L && sh latest

Based on the resources of your server, the installation may take about 30 minutes to one hour.

Enabling Network Manager Service

Remember to enable this service once the installation was completed with the below commands.

service NetworkManager start
chkconfig NetworkManager on

Note: It is not essential to reboot the server, but you can still restart all installed services through the below command.


Once the installation was completed, you will face the login URL to login into WHM / cPanel.

URL to login to the admin panel of cPanel / WHM: https://serverIP:2087 ( Consider that instead of server IP, you should put your server’s IP, which is this for me: )

Username to log in to the admin panel of WHM: It is the root or the username that you use instead of the root.

The password to login to the admin panel of cPanel: It is the password of your server.






342 responses to “How To Install cPanel / WHM On CentOS 7”

Leave a Reply

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