How to Install cPanel on an Ubuntu VPS

cPanel
 

cPanel is one of the paid control panels that have very comprehensive features. From web server to mail server, all the elements are available.

This guide will share how to install cPanel on Ubuntu VPS.

Managing a web server is a complex process. By default, Linux OS servers do not have a graphical interface, so server management must be done using text commands over an SSH connection.

For the unaccustomed, the use of text commands is a laborious process. You must memorize text commands to run services, install applications, upload content, etc.

Even for an experienced administrator, using text commands to execute all tasks is inefficient. In addition, errors in executing commands can also have fatal consequences that can cause the system to crash.

What is the control panel?

To simplify server management, you need a server management application with a graphical interface called a control panel. In general, the main features of the control panel consist of the file manager, database management, DNS, and email. The online control panel interface can be accessed through a web browser, which can be accessed from anywhere.

There are several control panel options, both paid and free. One of the most popular control panels is cPanel, which offers a full range of features to facilitate the management of a web server.

cPanel was created in 1996 and is now the standard control panel used by most web hosting services worldwide. With cPanel, you can build a complete web server easily.

cPanel support in Ubuntu LTS

In 2020, CentOS developers announced that the CentOS 8 lifecycle would end in December 2021. In response, cPanel announced expanded support for the operating system so that it can now officially install and run on Ubuntu 20.04 LTS.

For those of you who have VPS services with the Ubuntu 20.04 LTS operating system, you can now install cPanel to facilitate the management of your server.

How to install cPanel in Ubuntu

Here are the steps to install cPanel on Ubuntu 20.04 OS:

Step 1. Installing cURL

Make sure you have cURL installed on your Ubuntu VPS because the cPanel installer requires cURL to download the installation package. To install cURL on Ubuntu, run the following command:

# sudo apt update
# sudo prone install curl

Step 2. Set the hostname to FQDN format

To run the cPanel installer, ensure that your Ubuntu VPS’s hostname uses the FQDN format. Here are the steps:

sudo nano /etc/hostname

Change the default hostname of your Ubuntu VPS by adding the active domain address on the back to: hostname.domain.com (hostname.domain.com matches the hostname of the VPS and the available domain name you have).

Save and exit by pressing Ctrl+O, press Enter and then press Ctrl+X.

sudo nano /etc/hosts

Add the hostname line edited above:

IP_dress_VPS hostname.domain.com hostname (the IP address of the VPS replaces IP_address_VPS).
Save and exit by pressing the Ctrl+O key, Enter, anding Ctrl+X.

The last step, reboot the server by executing the command sudo reboot.

Step 3. Running the cPanel Installer

Please run the following command:

# sudo su
# cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

Wait for the cPanel installation process to finish with a statement. Thank you for installing cPanel and WHM xx. xxx.

Step 4. Activating cPanel License

If you have purchased a cPanel license, you can activate it by running the following command:

sudo /usr/local/cpanel/cpkeyclt

WHM Login

Once the cPanel installation is complete, you can log in to WHM in a web browser via the IP_address_VPS/the address. In the username field, enter the root and password.In the next step, click the Accept All button. Now you can start managing your VPS server through WHM and cPanel.

Conclusion

The control panel is a beneficial application for easy server management. With the control panel, you can upload content, create databases and create email accounts in a more accessible and straightforward way. Thus, our review article on How to install cPanel on Ubuntu VPS.

Leave a Reply

Your email address will not be published.