How to install cPanel on Ubuntu 20.04

There are several reasons for this: an impressive feature set, user-friendly interface, and good hosting reseller features. Even a newcomer to the industry can easily figure it out. The panel itself consists of two modules. 

  1. Site Control Panel with GUI - cPanel
  2. Administration Console - WHM (Web Host Manager)

One does not work without the other, but you can manage your site in either one. With its GUI (graphical user interface) cPanel covers several audiences from beginners who find it easier to click on the interface to advanced administrators who are used to working through a console.   

In fact, the panel consists of two modules-interfaces: the graphical site management panel (cPanel) and the Web Host Manager (WHM) administration console. These environments work together and you can manage your site in either of them - so cPanel is ideal for beginners and for developers who prefer the console rather than a nice design.

Of course, you have to pay for so much functionality, which may be a disadvantage for some users. But as with any product from a reputable company, you can take a 15 day trial period to see if it suits your needs. If not, you can always look at VestaCP, Virtualmin, and other free web panels.  

The list of supported operating systems for cPanel is CentOS, RHEL (Red Hat Enterprise Linux), CloudLinux. It has recently been possible to install cPanel on Ubuntu, so let's dive in to see how we can do it.

Step-by-step installation of cPanel on Ubuntu 20.04

Connect to your server with Ubuntu installed via SSH using the credentials provided by BlueVPS. You can connect to it by using the PuTTY utility.

Create a configuration file to install a specific cPanel version that supports Ubuntu 20.04:


$ sudo nano /etc/cpupdate.conf

Add a line to it:


CPANEL=98

Save the file. This will allow the installer to install the version we want.


$sudo -s

$apt update & apt upgrade


Then set the hostname with the name of your domain. In our case this is abcdtestdomain.xyz


$ sudo hostname cpanel.abcdtestdomain.xyz

To finally start the installation, enter this command:


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


how to install cpanel on ubuntu 20.04

Depending on the speed of your system, the installation can take from 15 to 30 minutes, because in addition to cPanel and WHM will also be installed Perl and many other components of the program.


Once the installation is complete, be sure to set a password for WHM login using the command:


$ sudo passwd

Conclusion

That's all! We would like to mention that installing cPanel on Ubuntu is not the best choice due to various pitfalls in the installation process. If you still need cPanel, then we advise you to look at a VPS with pre-installed CentOS. If you have any problems during the installation, feel free to contact BlueVPS Technical Support using the ticket system. We will help you in the shortest time possible!

Blog