How to Install cPanel on AlmaLinux
Step 1:
Update the Server
- Login to server via SSH
- Run:
yum update -y
Step 2:
Set a Hostname
- Hostname must be a Fully Qualified Domain Name (FQDN)
- Example:
hostnamectl set-hostname server.yourdomain.com
Step 3:
Disable Network Manager (Optional, cPanel prefers network-scripts)
- systemctl stop NetworkManager
- systemctl disable NetworkManager
- Install network-scripts if not present:
yum install -y network-scripts
Step 4:
Install Perl and Curl
- Run:
yum install perl curl -y
Step 5:
Install cPanel
- Go to /home directory:
cd /home
- Download the cPanel installer:
curl -o latest -L https://securedownloads.cpanel.net/latest
- Start installation:
sh latest
Step 6:
Enable and Start NetworkManager Again
- After cPanel installation finishes
- Run:
systemctl enable NetworkManager
systemctl start NetworkManager
Step 7:
Reboot Server
- Run:
reboot
Step 8:
Access WHM
- Open browser
- Go to:
https://your-server-ip:2087
- Login with:
- Username: root
- Password: your root password
Step 9:
Accept License and Complete Setup Wizard
- Accept cPanel license
- Enter email address and nameservers
- Set hostname if needed
Step 10:
Start Using WHM and cPanel
- Create accounts
- Upload websites
- Configure security and backups
Notes:
- cPanel requires a paid license.
- Free trial is available for 15 days.
- Minimum server requirements:
- AlmaLinux 8 or 9 (fresh install)
- 2 GB RAM minimum (recommended 4 GB+)
- 20 GB disk space minimum