How to Install cPanel & WHM on Ubuntu?

Prerequisites for installing cPanel on Ubuntu
- Linux VPS with Ubuntu 24 LTS 64bit OS
- 2 GB of RAM
- 20 GB of storage space
- Static IPv4
- 1 Core CPU 1.1 GHz
Updating Ubuntu server repository packages
Software packages must be updated/upgraded before starting cPanel installation.
To upgrade in Ubuntu operating system, use the following command:
apt update -y
apt upgrade -y
Copy
After the update/upgrade is complete, start the cPanel installation.
MySQL & MariaDB
Before starting to install cPanel, pay attention to this point regarding MySQL, if you do the installation with the default cPanel command, only MySQL 8.0.37 will be installed, which cannot be upgraded to MariaDB.
Start installing cPanel
Use the following command to start installing cPanel with MySQL 8.0.37.
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
Copy
Use the following command to start installing cPanel with MariaDB 10.11
mkdir -p /root/cpanel_profile/
echo \'mysql-version=10.11\' > /root/cpanel_profile/cpanel.config
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
Copy
How long does it take to install cPanel?
Installing cPanel may take up to 30 minutes, depending on your server speed and network.
Install cPanel license
After cPanel is successfully installed, you can log into your WHM and make the relevant settings. Before you can access the settings, you need a cPanel license. cPanel gives you a 14-day trial license that you can get. But with MyLoad licenses, you can get a cPanel VPS license for $4.50 and a cPanel Dedicated Server license for $9!