.COM Domain Price Drop Just KES 999
India English
Kenya English
United Kingdom English
South Africa English
Nigeria English
United States English
United States Español
Indonesia English
Bangladesh English
Egypt العربية
Tanzania English
Ethiopia English
Uganda English
Congo - Kinshasa English
Ghana English
Côte d’Ivoire English
Zambia English
Cameroon English
Rwanda English
Germany Deutsch
France Français
Spain Català
Spain Español
Italy Italiano
Russia Русский
Japan English
Brazil Português
Brazil Português
Mexico Español
Philippines English
Pakistan English
Turkey Türkçe
Vietnam English
Thailand English
South Korea English
Australia English
China 中文
Somalia English
Canada English
Canada Français
Netherlands Nederlands

How to Install cPanel on a VPS: A Simple Guide

Buy domains, business emails, hosting, VPS and more: Get Started

Cheapest Domains in Kenya

Get your .Co.ke domain now for just KSh 999 (Back to 1200 in 7 days)

.CO.KE for KSh 999 | .COM for KSh 999

cPanel on a VPS gives you real control. And I’m talking about the kind of control shared hosting simply cannot offer. 

You get root access, the ability to host multiple websites, manage emails, run custom scripts, and scale your server resources as your traffic grows.

For most of us, shared hosting is where the journey starts. 

And it works until it doesn’t. Slow load times creep in, resource caps become a ceiling you keep hitting, and any customization beyond the basics feels like negotiating with a wall. 

That’s when a VPS becomes the obvious upgrade, and you see the importance of learning how to install cPanel on a VPS.

However, before touching a single command, your VPS needs to tick a few specific boxes. cPanel is not a lightweight application, and it has specific system needs, and installing it on the wrong setup will leave you staring at error messages.

cPanel only works on certain Linux distributions. As of 2026, your options are:

1.    AlmaLinux 8 and 9 (most recommended)

2.    Rocky Linux 8 and 9

3.    CloudLinux 8 and 9

CentOS is no longer supported by cPanel. Also, Ubuntu support is experimental and not recommended for production. 

Always start with a fresh OS installation and do not install cPanel on a server that already has other control panels or services running.

On the resource side, you need at least 2 GB of RAM (4 GB for smooth performance), a minimum of 20 GB of disk space (40 GB recommended), a static publicly visible IP address, and a fully qualified domain name set as your hostname, something like server.yourdomain.com.

Our Truehost’s VPS plans come with SSD storage, full root access, and your choice of AlmaLinux or Rocky Linux. Everything is already in place for a clean cPanel installation.

Steps on How to Install cPanel on a VPS

Step 1: Get the Right VPS

For the installation to go smoothly, your server needs three things from the start: a static public IP address, root SSH access, and a supported operating system available at provisioning. 

Miss any one of those, and you’ll hit a wall before you even begin.

At Truehost, we offer two types of VPS plans depending on how hands-on you want to be:

  1. Unmanaged VPS: You get full root access and handle the setup yourself. 
  2. Managed VPS: We handle the server management, cPanel installation, and security hardening for you. Perfect if you’d rather focus on running your business than managing a server.

Our Kenyan VPS plans start from as low as KES 1400/month, and you can pay via M-PESA, card, or bank transfer, whichever is easiest for you.

how to install a vps on a cpanel

Step 2: Connect to Your VPS via SSH

With your VPS provisioned, the next move is connecting to it remotely via SSH (Secure Shell). This is how you access your server’s command line remotely and start working.

On Linux or macOS, open your terminal and run:

ssh root@<your-vps-ip>

Swap out <your-vps-ip> with the actual IP address from your Truehost dashboard.

On Windows, the easiest route is PuTTY, which is a free SSH client. Once you have it open:

  1. Enter your VPS IP address in the “Host Name” field
  2. Make sure Port is set to 22 and Connection type is SSH
  3. Click Open, log in as root, and enter your password

One thing that trips up a lot of first-timers: when you type your password, nothing shows on screen, no dots, no asterisks, nothing. That’s completely normal. Just type it and press Enter.

Once you’re in, update your server before doing anything else:

dnf update -y

Step 3: Run the cPanel Installation Script

This is where the actual installation happens. While logged in as root, run this command:

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

Breaking it down, cd /home moves you to the home directory, curl -o latest -L ... pulls the official installer straight from cPanel’s servers, and sh latest kicks it off. 

How to install a VPS on a cPanel on Terminal

From there, the script takes over: it configures your server, installs all required services, and sets up WHM without you having to lift a finger.

Do not close your terminal while this is running.

The installation typically takes anywhere from 10 to 15 minutes depending on your server speed and connection.

Pro tip: Before running the installer, start a screen or tmux session. If your SSH connection drops mid-install, the process keeps running in the background, and you can reconnect to it without losing progress.

Step 4: Access WHM and Complete the Setup

When the installer finishes, it’s time to log into WHM (Web Host Manager). Think of WHM as the layer above cPanel, where you handle server-level settings, create hosting accounts, and keep everything running smoothly.

Open your browser and head to:

https://<your-vps-ip>:2087

Your browser will probably throw up a security warning at this point. Don’t be alarmed; it’s expected on a new server that doesn’t have an SSL certificate configured yet. Click Advanced and proceed to the page anyway.

WHM login page

Log in with root as your username and your server’s root password. 

From there, the WHM Setup Wizard walks you through the essentials: accepting the license agreement, configuring your nameservers, and adding a contact email. 

It will ask you to put in your email ID that you used to purchase the cPanel and WHM license. Here, click the login button and enter the email address and password, then click “Sign In.”

You’ll be redirected back to the original page to activate the license and proceed to the server setup wizard.

Don’t rush through the nameserver step, especially if you’re planning to manage DNS for multiple domains. Getting this right from the start saves you a headache later.

WHM setup wizard

Step 5: Create Your First cPanel Account

WHM manages the server. To actually host a website, you need to create a cPanel account for the domain. 

This is how to do it:

In WHM, go to Account Functions, then Create a New Account. Fill in the domain name, a username, password, and contact email, then click Create.

how to install cpanel on a vps new account

For the package, choose default

Once the account is set up, you can log into cPanel directly at:

https://<your-vps-ip>:2083

That’s it! Your VPS is fully up and running with cPanel. To proceed to your new account, click “Go To cPanel.” From here, you can create additional accounts for other domains or clients the same way straight from WHM whenever you need to.

FAQs on How to Install cPanel on a VPS

Does Truehost offer cPanel VPS in Kenya?

Can I install cPanel on any VPS?

Is cPanel free?

What if my installation fails?

You’re Ready to Go

You now know exactly how to install a VPS on cPanel in five simple and direct steps.

With a compatible server, a supported OS, and the official installation script, you can have a fully working cPanel environment running in under two hours.

Now, get our cPanel-supported VPS hosting, follow the steps and create your first website on cPanel

If you’d rather skip the command line entirely, our managed VPS hosting at Truehost comes with cPanel already installed and configured. Pick a plan, pay, and start hosting right away.

Cheapest Domains in Kenya

Get your .Co.ke domain now for just KSh 999 (Back to 1200 in 7 days)

.CO.KE for KSh 999 | .COM for KSh 999