Cantech Knowledge Base

Your Go-To Hosting Resource

How to install cPanel on Almalinux?

Introduction

cPanel is a web hosting control panel that enables the management of web hosting accounts. It offers automated tools that make hosting an application or website easy, you will rarely ever have to login to a terminal after you install cPanel. Sometimes, cPanel is used by hosting companies but website administrators prefer the convenience of cPanel over using the SSH for everything. In this blog, we will explore the importance of Alma Linux and the process to install cPanel on Almalinux.

Why use Alma Linux with cPanel?

cPanel is compatible with AlmaLinux which is a free CentOS alternative. cPanel depends on the Red Hat ecosystem. However, after some price hike over at Red Hat where CentOS is not free anymore.

Thus, AlmaLinux came into picture, AlmaLinux offers a closest replacement to CentOS/RHEL which works effectively with cPanel. But, if you are going to use it for web hosting as in a shared environment, you can consider going with CloudLinux.

Pre-requisitis:

  • AlmaLinux installation.
  • A VPS or dedicated server with root access.
  • cPanel license.

Steps to Install cPanel on AlmaLinux 9

Here is a step by step process to install cPanel on AlmaLinux 9

Step 1: Firstly Update the system

Make sure you have the latest packages and security patches:

sudo dnf update -y

Step 2: Install Perl

As cPanel is mainly written in Perl, we need to ensure it is installed:

sudo dnf install perl -y

Step 3: Download the cPanel installation script

With the preliminaries out of the way, let’s take the cPanel installation script:

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

Step 4: Kickstart the installation

Run the following command:

sh latest

This could take some time. Once it is completed, both cPanel and WHM will be installed.

Step 5: Access cPanel & WHM

Once the installation is completed, you can access WHM via:

https://your_server_IP:2087

It provides you with a direct link to login and automatically start configuring the installation:

cPanel is successfully installed

Step 6: Complete the cPanel setup wizard

WHM’s setup wizard will explain you through the basics, from setting up nameservers to choosing hosting plans, and more.

Conclusion

Alma Linux is a perfect alternative for CentOS, if you are looking for a stable hosting experience. If you want to stay up to date check the latest updates and changes at the cPanel’s official documentation.

November 6, 2026