How to Install cPanel on AlmaLinux 8/9 VPS or Dedicated Server
Step 1: Update the Server
First, update all installed packages on your AlmaLinux VPS or dedicated server:
yum update -y
Step 2: Install Perl
cPanel requires Perl, so install it using the following command:
yum install perl -y
Step 3: Install cURL
Install cURL, which is required to download the cPanel installation script:
yum install curl -y
Step 4: Set the Server Hostname
Set a fully qualified domain name (FQDN) as your server hostname. Replace server.kathosting.com with your own hostname:
hostnamectl set-hostname server.kathosting.com
Step 5: Navigate to the /home Directory
Move to the /home directory before downloading the cPanel installer:
cd /home
Step 6: Download the cPanel Installer
Download the latest official cPanel installation script using cURL:
curl -o latest -L https://securedownloads.cpanel.net/latest
Step 7: Start the cPanel Installation
Finally, run the installation script to begin installing cPanel & WHM:
sh latest
The installation process can take some time depending on your server's CPU, RAM, disk speed, and network connection. Once the installation is complete, you can access WHM through your server's hostname or IP address.
Important Note
Before installing cPanel, make sure your server meets the official cPanel system requirements and that you have a clean AlmaLinux installation. cPanel is intended to be installed on a dedicated or VPS server rather than an existing production server with other control panels or services already configured.