How To Install cPanel & WHM On AlmaLinux VPS Server
cPanel & WHM is one of the most popular hosting control panels used for:
- shared hosting
- reseller hosting
- VPS hosting
- business hosting
- enterprise hosting environments
It provides an easy-to-use interface for managing:
- websites
- emails
- databases
- DNS
- SSL certificates
- hosting accounts
In this guide,
you will learn how to install cPanel & WHM on an AlmaLinux VPS server step-by-step.
What Is cPanel & WHM?
cPanel
cPanel is the user interface used to manage:
- websites
- emails
- files
- databases
- domains
WHM (Web Host Manager)
WHM is the administrator interface used for:
- server management
- account creation
- hosting package management
- server configuration
- reseller hosting management
Together,
they create a complete hosting management environment.
Why Use cPanel & WHM?
cPanel is widely used because it provides:
- beginner-friendly interface
- hosting automation
- account management
- enterprise stability
- extensive plugin support
- large ecosystem compatibility
It is one of the most trusted hosting control panels worldwide.
Prerequisites
Before installation,
ensure you have:
- AlmaLinux VPS server
- minimum 2GB RAM
- root access
- clean operating system
- static IP address
Recommended operating system:
AlmaLinux 8
IMPORTANT — Fresh Server Requirement
cPanel should only be installed on:
clean VPS servers
Avoid installing on servers with:
- Apache
- MySQL
- PHP stacks
- existing control panels
This prevents installation conflicts.
Step 1 — Connect To VPS Server
Connect to your VPS using SSH.
Command:
ssh root@your-server-ip
Example:
ssh root@192.168.1.10
Step 2 — Update Server Packages
Update existing packages.
Command:
dnf update -y
This improves:
- stability
- security
- compatibility
Step 3 — Set Hostname
Set a fully qualified hostname.
Command:
hostnamectl set-hostname server.yourdomain.com
Example:
hostnamectl set-hostname server.example.com
Verify hostname:
hostname
Step 4 — Disable NetworkManager
cPanel recommends disabling NetworkManager.
Command:
systemctl stop NetworkManager
systemctl disable NetworkManager
Step 5 — Install Perl
Install Perl package.
Command:
dnf install perl -y
Perl is required for cPanel installer.
Step 6 — Download cPanel Installer
Move to home directory:
cd /home
Download installer:
curl -o latest -L https://securedownloads.cpanel.net/latest
Step 7 — Run cPanel Installer
Start installation.
Command:
sh latest
Installation may take:
30–60 minutes
depending on VPS performance.
Step 8 — Access WHM Dashboard
After installation,
open browser and visit:
https://your-server-ip:2087
Example:
https://192.168.1.10:2087
Step 9 — Login To WHM
Use:
- root username
- VPS root password
You will access the WHM dashboard.
Step 10 — Complete Initial Setup Wizard
WHM setup wizard helps configure:
- nameservers
- networking
- services
- hosting environment
- security settings
Complete all recommended steps.
Important cPanel Ports
| Service | Port |
|---|---|
| WHM Secure | 2087 |
| cPanel Secure | 2083 |
| Webmail Secure | 2096 |
| HTTP | 80 |
| HTTPS | 443 |
| SSH | 22 |
Configure Firewall Rules
If firewall is enabled,
allow cPanel ports.
Example:
firewall-cmd --permanent --add-port=2087/tcp
Reload firewall:
firewall-cmd --reload
Recommended WHM Security Settings
After installation:
- enable CSF firewall
- configure SSH security
- enable backups
- install SSL certificates
- enable cPHulk protection
- update packages regularly
Security is critical for production hosting environments.
Common cPanel Installation Errors
Insufficient RAM
cPanel requires:
minimum 2GB RAM
More RAM is recommended for production use.
Hostname Errors
Hostname must be:
- fully qualified
- valid domain format
Example:
server.example.com
Firewall Blocking WHM
Allow port:
2087
through firewall.
Why Businesses Use cPanel & WHM
Businesses prefer cPanel because it provides:
- hosting automation
- simplified management
- enterprise stability
- scalability
- reseller hosting support
- strong ecosystem compatibility
It remains one of the leading hosting control panels globally.
Why Choose DJ Technologies VPS Hosting
DJ Technologies Linux VPS hosting includes:
- NVMe SSD infrastructure
- enterprise virtualization
- premium low latency network
- scalable cloud resources
- advanced security
- optimized VPS environments
- cPanel compatible hosting
- 24×7 technical support
Our VPS infrastructure is optimized for:
- cPanel hosting
- reseller hosting
- business hosting
- scalable cloud infrastructure
Final Thoughts
cPanel & WHM is one of the most powerful hosting management platforms for Linux VPS hosting.
Its:
- simplicity
- automation
- scalability
- enterprise reliability
make it ideal for:
- shared hosting
- reseller hosting
- business hosting
- scalable hosting environments
- professional server management.
Français