How to Install cPanel on AlmaLinux or CentOS
Follow this step-by-step guide to install cPanel/WHM on a fresh server with a clean OS.
⚠️ Important Notes
- ● Only install on a fresh server (no other control panels).
- ● Requires a static IP, minimum 2 GB RAM, and 20 GB disk space.
- ● Root SSH access is required to install cPanel.
Step 1: Login via SSH
ssh root@your-server-ip
Step 2: Set Hostname
hostnamectl set-hostname server.yourdomain.com
Replace server.yourdomain.com
with your actual hostname.
Step 3: Update Your System
dnf update -y
Step 4: Install Required Packages
dnf install perl curl -y
Step 5: Download and Install cPanel
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
⏳ This process may take 20–30 minutes, depending on your server speed.
Step 6: Access WHM
After installation, open the following URL in your browser:
https://your-server-ip:2087
- Username: root
- Password: your root SSH password
Step 7: Complete WHM Setup
After logging in, complete the setup wizard:
- ● Accept the license agreement
- ● Enter contact information
- ● Configure nameservers
- ● Activate our cPanel license
⚡ One-Line Quick Install
curl -sL https://securedownloads.cpanel.net/latest | bash
❗ Having trouble installing cPanel?
Don’t worry — our expert support team is here to help! Please contact us anytime for assistance.
✅ Security Tip: After installation, secure your server by setting up a firewall and disabling root SSH access.