cPanel Installation on AlmaLinux – Step by Step Guide
AlmaLinux is a CentOS-based enterprise Linux distribution, and cPanel is one of the most widely used control panels for managing websites. This guide provides the essential steps to install cPanel on AlmaLinux 8/9 in a clear and straightforward way, without unnecessary commands or details.
AlmaLinux 8 or 9 must be installed.
Minimum 1 GB RAM (2 GB or more recommended) and 20 GB disk space.
Root access or sudo privileges on the server.
A fully qualified hostname must be set, e.g., server.example.com
Keeping the server up-to-date ensures a smooth installation.
dnf update -y
Before installing cPanel, set a valid hostname for the server.
hostnamectl set-hostname server.example.com
cPanel is installed using an automated installation script.
cd /home
curl -o latest -L https://securedownloads.cpanel.net/latest
Run the script to start installation. The process can take 30–60 minutes depending on server speed.
sh latest
The script automatically installs and configures all required services; no manual intervention is needed.
After installation, log in to WHM via a web browser.
URL: https://server_ip_address:2087
User: root
Password: Server root password
Complete the initial setup wizard:
License verification: Enter cPanel license key automatically or manually.
Configure nameservers, mail, and DNS services.
Apply security settings and SSL certificates.
After installation, ensure that all core services are running:
Apache/Nginx web server
MySQL/MariaDB database
Exim mail server
FTP and DNS services
Enable automatic updates for cPanel via WHM.
Set up regular backups and server monitoring.
With cPanel installed on AlmaLinux, managing websites, email accounts, and databases becomes straightforward. This setup provides a reliable and professional hosting environment for corporate or personal projects.