How to Install cPanel & WHM on AlmaLinux 8 or 9

AVASERVER Published

How to Install cPanel & WHM on AlmaLinux 8 or 9

To install cPanel & WHM on AlmaLinux, start with a fresh AlmaLinux 8 or 9 server that has at least 2 GB of RAM and 20 GB of disk. Set a fully qualified hostname, then run the official installer as root:

cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest --skip-cloudlinux

When it finishes, open WHM at https://YOUR_SERVER_IP:2087 and log in as root.

This guide follows that order and adds the checks that prevent a failed install.

Requirements

ItemMinimumRecommended
Operating systemAlmaLinux 8 (cPanel & WHM 110 and later) or AlmaLinux 9 (version 114 and later), fresh installAlmaLinux 9
RAM2 GB4 GB
Disk20 GB40 GB
HostnameFully qualified domain name, for example server.example.comA subdomain that is not used for a website
License15-day trial for new installsPaid cPanel license afterwards

These are the official cPanel figures for AlmaLinux. “Fresh” matters: the installer stops if Apache, MySQL or another control panel is already present. If you used the server for something else, reinstall AlmaLinux first (from the Client Area, or ask us in a ticket).

When you choose a plan and location, pick a VPS with 4 GB RAM or more if you will host several sites. Choose the location closest to your visitors.

Step 1: Connect and update the system

Connect as root over SSH (see How to Connect to Your Linux VPS with SSH). Then update the system:

dnf -y update
reboot

Reboot even if nothing seems to need it. A kernel update only takes effect after a restart.

Step 2: Set the hostname

cPanel requires a fully qualified hostname of up to 60 characters. It must not be the same as any domain you will host. Use a subdomain such as server.example.com:

hostnamectl set-hostname server.example.com
hostname -f

In the DNS of example.com, create an A record for server that points to your server IP. A missing record does not block the installation, but SSL for the hostname and some email checks need it later.

Step 3: Disable firewalld before installing

cPanel’s documentation recommends disabling the operating system firewall before the install, and configuring a firewall again afterwards. Save the current rules first:

iptables-save > ~/firewall.rules
systemctl stop firewalld.service
systemctl disable firewalld.service

On AlmaLinux 9 you don’t need to touch NetworkManager. On AlmaLinux 8, the installer switches the network service itself.

Step 4: Run the installer inside tmux

The installation runs for a long time. If your SSH connection drops halfway, a plain session stops the installer with it. Use tmux:

dnf -y install tmux
tmux new -s cpanel
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest --skip-cloudlinux

--skip-cloudlinux keeps the server on AlmaLinux. Without it, the installer may offer to convert the system to another distribution.

If you get disconnected, log in again and run tmux attach -t cpanel. The full log is in /var/log/cpanel-install.log. If the install stops with an error, the reason is near the end of that file.

Step 5: First login to WHM

When the installer prints that the installation is complete, open:

https://203.0.113.10:2087

Replace the IP with your own. The browser warns about the certificate on the first visit, because the server still uses a self-signed one. Continue to the site, then log in with root and the root password.

The setup wizard then asks you to:

  1. Accept the license agreement.
  2. Enter a contact email for server notifications.
  3. Set the nameservers. Keep the defaults if your domains will use external DNS.

Ports that cPanel uses

PortService
2087WHM (server administration, root)
2083cPanel (per-account panel)
2096Webmail
80, 443Websites
21FTP
53DNS, if the server hosts your zones
465, 587, 993, 995Secure mail sending and receiving

Important: outgoing port 25

Outgoing connections on port 25 are closed on AVASERVER servers, as stated in our terms. Your server can’t deliver email directly to other mail servers on that port. Configure an external SMTP relay in WHM › Service Configuration › Exim Configuration Manager › Basic Editor (the smarthost setting). Ports 465 and 587 to your relay provider are not affected.

After the installation

  • Change the root password if it was ever sent by email. See How to Change the Root Password on a Linux VPS.
  • Set up a firewall again to replace the firewalld you disabled.
  • Turn on cPHulk Brute Force Protection in WHM › Security Center.
  • Create your first account in WHM › Account Functions › Create a New Account.

Frequently asked questions

How long does a cPanel installation take?

It depends on CPU and disk speed. On a typical VPS, expect it to run for tens of minutes. Keep it inside tmux so a dropped connection doesn’t interrupt it.

Can I install cPanel on AlmaLinux 10?

Check the current cPanel system requirements before you try. This guide covers AlmaLinux 8 and 9, which cPanel supports for versions 110 and 114 onward.

Is cPanel free?

No. New installations get a 15-day trial license. After that, the server needs a paid cPanel license.

Can I remove cPanel later?

There is no supported uninstaller. To go back to a clean server, reinstall the operating system.

Related articles

Control Panels

How to Install DirectAdmin on AlmaLinux

On a clean AlmaLinux VPS with 4 GB RAM and 4 GB swap, run the DirectAdmin setup script as root with your license key. The admin login appears at the end and is saved in /usr/local/directadmin/conf/setup.txt.

AVASERVER