3v-Hosting Blog

Installing a specific version of the cPanel on your server

Administration

7 min read


Do you want to create and manage your website, but do not have enough knowledge and skills to work with servers? Then your option is a hosting control panel, which will allow you to manage your website using an intuitive web interface.

One of the most popular, if not the most popular, at the moment is the cPanel control panel. This is a powerful and stable product that has proven itself well over many years of existence. It is suitable for both ordinary users who need to manage their website, and for web studios, hosting companies, etc., who need to manage hundreds of websites at the same time.

The advantage of cPanel is that there is a lot of information on it on the Internet, countless manuals, cases, as well as excellent and extensive own documentation.

cPanel is a living product that is constantly being added to and changed, which of course is a big plus, as it always keeps its finger on the pulse of many issues, from usability to information security. But this same plus can also turn into a minus, since support for the product on outdated operating systems, such as CentOs7, is gradually being phased out, which causes some inconvenience to those users who, for one reason or another, are forced to work with the CentOs OS.

And although the issue of installing a specific version of cPanel is well described in the native documentation, unfortunately, not everyone reads it and as a result they often encounter failure when trying to install cPanel on CentOs. That is why we decided to write a short manual that will explain in your fingers how to do this quickly and painlessly.

Go!

 


1. Before installing cPanel

We will keep in mind that you already have a virtual or dedicated server running CentOs 7 OS with full administrative access to it.

So, before starting the installation, we need to make sure that all installed packages are updated to the latest available versions. To do this, run the command:

sudo yum update

 


This command will update the list of available packages and update installed packages to the latest versions.

Now let's disable and disable the use of the NetworkManager network daemon, the operation of which can interfere with the installation and operation of cPanel. Here, too, everything is simple - we execute the following commands one by one:

sudo systemctl stop NetworkManager
sudo systemctl disable NetworkManager
sudo systemctl enable network
sudo systemctl start network

 


We also need to configure a fully qualified domain name (FQDN) on the server. To do this we type:

sudo hostnamectl set-hostname your.example.com

, where we replace your.example.com with your domain.

 


That's it, now we are ready to install cPanel directly.

 


2. Install cPanel

Let's go to the home directory and download the cPanel installation files from their official website:

cd /home
curl -o latest -L https://securedownloads.cpanel.net/latest

 


Here we could immediately execute the downloaded file, but then it will try to install the latest available version. We want to install a specific version, which may be outdated at the moment. Therefore, when the files have downloaded, we need to create a new /etc/cpupdate.conf file with the following contents:

CPANEL=94
RPMUP=daily
SARULESUP=daily
STAGING_DIR=/usr/local/cpanel
UPDATES=daily

 

 

Pay attention to the first line. This is where we must indicate the version we want to install. At the time of writing, the version of cPanel running on CentOs7 OS is 94, so we have the number 94 in the first line after the “equal” sign.
Save and close the file.

 

Making sure that we are still in the home directory, run the following command:

sh latest

 

That's it, the installation process has started. The installation script will download and install the required version of the program. This may take quite a long time, after which you will see a message about successful installation and a URL address for entering the web interface, like:

https://yourhostname.example.com:2083

or

https://you.IP.address:2083

 

Congratulations! You installed cPanel on your server yourself. Provided that you have already purchased a license and entered the IP address of your server when purchasing, then your server is now completely ready for use.

 

As you can see, the steps described are not complicated and anyone can perform them.
We hope this short tutorial will help you!