Short answer: cPanel & WHM is installed on a freshly installed AlmaLinux server, as root, with a single official command: cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest. Before running it, set the hostname to a fully qualified domain name (FQDN), disable SELinux and stop the firewall. When the installation finishes, you log in to WHM at https://server-ip:2087.
Supported AlmaLinux Versions and Requirements
According to cPanel’s official AlmaLinux requirements page:
| AlmaLinux | Supported cPanel & WHM |
|---|---|
| 10 | 132 or later |
| 9 | 114 or later |
| 8 | 110 or later |
| Resource | Minimum | Recommended |
|---|---|---|
| Processor | 1.1 GHz, 64-bit (ARM is not supported) | — |
| RAM | 2 GB | 4 GB (at least 3 GB if you’ll use ClamAV) |
| Disk | 20 GB | 40 GB |
| IP address | At least one static IPv4 (no DHCP-assigned IP) | — |
If you’re building a new server, choose AlmaLinux 9 or 10; 8 is still supported but is the older release. CentOS is no longer among the operating systems cPanel supports (the supported ones are AlmaLinux, CloudLinux, Rocky Linux and Ubuntu). For background on CentOS, see our what is CentOS article.
What to Know Before You Install
- Clean operating system: install cPanel only on a freshly installed operating system. Don’t install it on a server that already has Apache, MySQL or another panel.
- No uninstaller: cPanel has no uninstaller; to remove it you have to reinstall the server.
- Hostname: it must be a fully qualified name under a registered domain (e.g.
server.yourdomain.com), must not match any of the sites on the server, must be at most 60 characters and must resolve to the server’s IP address. - SELinux must be disabled: cPanel doesn’t support SELinux enforcing mode, and permissive mode isn’t recommended.
- Licence: cPanel is paid; a 15-day free trial is offered for new installations. After that you need a licence.
Installing cPanel on AlmaLinux Step by Step
1. Connect as root and update the system:
ssh root@server-ip
dnf -y update2. Set the hostname and create an A record for it in your domain’s DNS pointing to the server IP:
hostnamectl set-hostname server.yourdomain.com
hostname -f3. Disable SELinux. Check the status with getenforce; if it isn’t “Disabled”, change the configuration and reboot:
getenforce
sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config
reboot4. Stop the firewall during installation. cPanel recommends disabling the operating system’s firewall before installing:
systemctl stop firewalld
systemctl disable firewalld5. Start the installation in a tmux session. Installation can take a while; use tmux so it isn’t interrupted if your SSH connection drops. Then run cPanel’s official install command:
dnf -y install tmux
tmux new -s cpanel
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latestIf the connection drops, reconnect and return to the installation with tmux attach -t cpanel. The script installs the required packages (including Perl) itself, and on AlmaLinux 8 it also disables NetworkManager. When it finishes, the WHM login address is shown on screen.
First Login to WHM and Basic Settings
- Open
https://server-ip:2087in your browser. A self-signed certificate warning on first login is normal. - Log in with root and your root password.
- In the initial setup wizard, accept the licence agreement and enter your contact email address and nameservers (ns1/ns2).
- Create your first hosting account in WHM with Create a New Account; that account’s user logs in to cPanel at
https://domain:2083.
In short: WHM is the server administrator’s panel (creating accounts, packages, server settings), while cPanel is each hosting account’s own panel (files, email, databases, domains).
Security After Installation
- Re-enable the firewall: configure the firewall you turned off for the installation to allow the ports cPanel uses (2083, 2087, 2096, web and mail ports) and turn it back on.
- Enable cPHulk: cPHulk Brute Force Protection in WHM blocks repeated failed logins.
- Harden SSH: switch to key-based login and disable root login with a password. More: preventing SSH brute-force attacks with Fail2ban.
- Set up updates and backups: configure automatic updates and off-server backups in WHM.
Common Installation Problems
| Symptom | Likely cause | Fix |
|---|---|---|
| Installation stops with a hostname error | The hostname isn’t an FQDN or matches a site’s domain | Use a separate name such as server.yourdomain.com |
| SELinux warning | SELinux is enforcing or permissive | Set it to disabled in /etc/selinux/config and reboot |
| WHM port 2087 won’t open | Firewall or the provider’s network filter | Allow 2087; check the security group in your provider’s panel |
| Installation was interrupted | The SSH connection dropped | Run the installation inside tmux; if needed, start again on a clean system |
Frequently Asked Questions
Is cPanel free?
No. cPanel offers a 15-day free trial; after that you need a monthly licence priced by the number of accounts. If you’re looking for a free panel, consider the alternatives.
Can cPanel be installed on Windows?
No. cPanel runs only on supported Linux distributions (AlmaLinux, CloudLinux, Rocky Linux, Ubuntu). Windows servers use panels such as Plesk.
Can I use a ready-made cPanel instead of installing it myself?
Yes. If you only host websites, a hosting plan that comes with cPanel is the easiest route. If you want full control, get a VDS server and install it yourself with this guide.
If you’re looking for hosting with cPanel ready to use, see Sunucun’s cPanel hosting plans; for a cPanel licence for your own server, see our license services page.
Categories
-
CentOS 7 guides
-
cPanel 20 guides
-
CyberPanel 18 guides
-
Operating Systems 81 guides
-
Juniper Networks 18 guides
-
Control Panels 50 guides
-
Linux 17 guides
-
MySQL 29 guides
-
Network 95 guides
-
Plesk Panel 12 guides
-
Virtual Servers 273 guides
-
SEO 3 guides
-
Cyber Security 8 guides
-
Technology 162 guides
-
VMware 36 guides
-
WordPress 20 guides
-
Artificial Intelligence 22 guides