How to install cPanel and WHM on CentOS or CloudLinux

cPanel and WHM have become one of the most used web hosting management tools, cPanel is a very stable hosting control panel and WHM is a control panel for server administrators that allows us to control any dedicated server or VPS server where cPanel is installed.

Both cPanel and WHM are two unique tools, which also perfectly complement systems like CloudLinux, achieving very stable servers when it comes to offering a quality shared hosting service or reseller hosting for different customer profiles.

Although cPanel is a very advanced control panel and WHM has many tools, its installation is not very complex, we can install cPanel and WHM (they always go together) on any dedicated server or VPS server that has a CentOS operating system, CloudLinux or RedHat (RHEL).
At the time of writing, the cPanel installer supports CentOS versions 6 and 7, CloudLinux, and RedHat (RHEL) .

The basic installation system of cPanel is simple, we just have to follow a wizard from the Linux terminal and then another wizard directly from the browser using to access the IP address of the server where we are installing cPanel.

Requirements to install cPanel & WHM

As we have said previously, we can install cPanel and WHM on any dedicated server or VPS server that has CentOS , CloudLinux or RedHat (RHEL) operating system , both in version 6 and in version 7.

At the hardware level cPanel does not need too many resources , but we must bear in mind that we are installing a complete stack of services on a web server , and this means that the webs hosted on the server will need the resources to function, if there are no resources , we are going to have problems.

What I mean by this? Although according to the official cPanel documentation , we can install it on a server with 226 Mhz of CPU frequency and 768 MB of RAM, with these resources we can only install it, we will not be able to host any web because services such as Apache , MySQL and PHP do not work to run properly and will give us quite a bit of trouble.

In principle, what we recommend as MINIMUM to have a fully functional cPanel server with all services working perfectly are these:

  • 2 GB of RAM.
  • 1 CPU core (at least 2 Ghz).
  • 20 GB of HDD or SSD hard drive.
  • CentOS 6 or CentOS 7, but 64-bit.

With these requirements met, our cPanel should be fine, and we can start talking about hosting websites , but keep in mind that the more traffic the websites you host have on your server, the more resources your server will need to function properly.

How to install cPanel on CentOS

First of all, we are going to support this installation guide with a video on how to install cPanel & WHM on a CentOS 7 server , since I think that the simple fact of seeing the ease with which we can install cPanel already serves to realize that the process does not have any difficulty (that does not mean that its subsequent configuration is easy, if you need help to configure cPanel after its installation, contact us).

Now that you have seen the video, we are going to follow the process in a written guide format, we are going to start by SSH entering the server where we are going to install cPanel and WHM , for this we use our usual SSH client , in this case I am on Windows, and I’m going to use Putty, but on Linux or Mac we can perfectly use the Linux or Mac terminal with the “ssh” command.

(The SSH terminal you see belongs to one of our VPS servers , specifically a VPS 2 SSD with CentOS 7 ).
We start the work by updating the operating system, since normally there are quite a few updates that will help us keep our system optimized, safe and stable.

To update a CentOS we use the following command:

Leave a Comment