Uncategorized

Getting Technical: How to Install cPanel on Ubuntu?

Now that we’ve got our basic facts and definitions right, let’s dive straight to the technicalities of how to install cPanel on Ubuntu. The following guide will allow you to install cPanel on Ubuntu 20.04 which is the latest version of Ubuntu at the time of writing.

Step 1: Check System Requirements

First before getting excited, it’s important to know that your machine is actually capable of running cPanel on its current hardware. In order to have a viable experience with cPanel on your Ubuntu 20.04 you’ll need the following requirements:

RequirementMinimum Recommended
Processor1.1 GHz2 GHz
Ram1 GB4 GB
Architecture 64 bit64 bit
OSUbuntuUbuntu 20.04 LTS
Disk Space20 GB40 GB

In addition to these requirements you are going to need a static IP address as well as a fully qualified domain name (FQDN).

Step 2: Disable the Firewall and Switch to Root System (Optional)

Now you have the option of disabling the firewall which will make the installation process easier, however it could be unsafe. If you choose to not disable it, you have to later go through the process of opening some ports. You are going to have to access your root user. To do this run the following command:

Copy

sudo -i

Then you need to disable any previously activated firewalls as they will interfere with the process of installation run these three commands in order:

Copy

iptables-save > ~/firewall.rules

Copy

systemctl stop ufw.service

Copy

systemctl disable ufw.service

Step 3: Update Ubuntu

While you can install cPanel on any version of Ubuntu, it is highly recommended you do so on Ubuntu 20.04. This version has increased compatibility and will give you a better cPanel experience. Use the following command lines to check and run the latest updates automatically:

Copy

sudo apt update

Copy

sudo apt upgrade

Step 4: Set up a Qualified Hostname

As we already mentioned during the requirements section, you are going to need a fully qualified domain name. So, and this is important, make sure that you have such a host name before going for the installation process itself. 

Check your already existing by running the following command:

Copy

hostname

Now use the following command to make the host name into a fully qualified host name, let’s say we are going to make a new hostname with a single command (replace new hostname with your own chosen name):

Copy

hostnamectl set-hostname new-hostname

Copy

hostnamectl set-hostname yourserver.domain.com

You don’t need to even reboot with this method. To check if the changes are applied just run the following command:

Copy

hostnamectl

Step 5: Run the Installation Commands

Now that you have set up your own FQDN, it’s time to install cPanel on Ubuntu. This same procedure can also be used to install WHM on Ubuntu. First, we need to create a Shell Session. This will make the session active despite any network issues. Login using the root user and run the command:

Copy

screen

Now let’ts run the big one:

Copy

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

You should be greeted with this screen, which means the system is downloading and performing the installation which will take a few minutes.

Step 5:Open the Relevant Port Numbers

In order to make sure your cPanel runs smoothly on Ubuntu, you’ll need to open some relevant ports for it. We’re not going to go into detail on how to access the firewall and open the ports, you can use  for the purpose. But once you’re in firewall settings, open the 2082 and SSL 2083 ports to run cPanel. Do note that if you disabled the firewall in previous steps, you don’t need to open the ports. Skip the step if that’s the case.

Launch cPanel and Activate Licenses 

Now we finally can launch cPanel. Make sure you’re on your root server and use the root username and password to login when the following screen pops up:

Cari domain dan lisensi cpanel murah ke WEBRUSH aja harga paling murah seindonesia