Blog

How to Install cPanel & WHM on Ubuntu? A Step by Step Guide

June 11, 2026 2 min read

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.

Quick summary

Looking for affordable server licenses? SharedLicense offers cPanel, DirectAdmin, LiteSpeed, CloudLinux, and Windows licenses at wholesale prices with instant delivery.

Browse licenses →

To upgrade in Ubuntu operating system, use the following command:


					
				

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.

Need the best price on server licenses?

Get cPanel, DirectAdmin, LiteSpeed & more with instant delivery and 24/7 support.

Shop Licenses →

Start installing cPanel

Use the following command to start installing cPanel with MySQL 8.0.37.


					
				

Use the following command to start installing cPanel with MariaDB 10.11


					
				

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 shared licenses, you can get a cPanel VPS license for $4.50 and a cPanel Dedicated Server license for $9!

Share:

Ready to save on software licenses?

Join thousands of hosting providers who trust SharedLicense for wholesale pricing and instant delivery.