AI Chat

How to Install cPanel & WHM on AlmaLinux 9 and 10 (Step-by-Step Guide)

Install cPanel WHM AlmaLinux Dedicated Server
Ask AI to extract steps & commands from this tutorial:

Managing multiple websites, email accounts and databases through the Linux command line can become difficult as your hosting environment grows. cPanel & WHM provides a graphical interface that allows you to manage these services without handling every task manually.

AlmaLinux 9 and 10 are supported operating systems for cPanel & WHM, making them suitable choices for dedicated server hosting environments.

However, installing cPanel requires more than running a single command. Your server needs a fresh operating system, a static public IP address, a correctly configured hostname and sufficient hardware resources.

Quick Answer: To install cPanel & WHM on AlmaLinux 9 or 10, prepare a fresh operating system, log in as root, configure your hostname, disable SELinux and temporarily disable the operating system firewall. Then run the official cPanel installation command:

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

Once the installation finishes, access WHM through https://YOUR_SERVER_IP:2087 and complete the initial configuration.

This tutorial explains each stage, from preparing your AlmaLinux dedicated server to creating your first cPanel hosting account.

What Are cPanel and WHM?

cPanel & WHM is a Linux-based web hosting control panel that provides tools for managing websites, email accounts, databases, domains and server services.

Although they are installed together, cPanel and WHM serve different purposes.

  • cPanel: Provides website owners with an interface to manage website files, email accounts, databases, domains and other hosting features.

  • WHM (WebHost Manager): Provides server administrators with tools to create hosting accounts, configure DNS, manage server services and control hosting resources.

For example, if you operate a web hosting business, you can use WHM to create separate hosting accounts for customers. Each customer can then access their own cPanel account to manage their websites and email.

If you are comparing different hosting control panels before choosing one, read our cPanel vs Plesk vs Webmin comparison.

Which AlmaLinux Versions Support cPanel?

cPanel & WHM supports AlmaLinux 9 and AlmaLinux 10, but each operating system version has a minimum supported cPanel version.

  • AlmaLinux 9: Requires cPanel & WHM version 114 or later.

  • AlmaLinux 10: Requires cPanel & WHM version 132 or later.

AlmaLinux 10 support was introduced in cPanel version 132. Therefore, make sure the installation environment supports the required version before proceeding.

cPanel also supports other Linux distributions, including CloudLinux and Ubuntu 24.04 LTS. Rocky Linux is no longer supported for new installations from cPanel version 134.

For a broader comparison of Linux distributions, see our guide to choosing the right operating system for a dedicated server.

Requirements Before Installing cPanel on AlmaLinux

Before installing cPanel & WHM, check that your dedicated server meets the minimum hardware and networking requirements.

1. Hardware Requirements

The following table outlines the minimum hardware requirements published by cPanel for AlmaLinux 9 and 10.

Requirement Minimum Recommended
Processor 1.1 GHz Depends on hosting workload
RAM 2 GB 4 GB
Disk Space 20 GB 40 GB
Architecture 64-bit 64-bit

The installation and upgrade processes also require at least 5 GB of additional free disk space in /usr/local/cpanel.

If you plan to install ClamAV, cPanel recommends at least 3 GB of RAM.

These figures represent installation requirements, not recommended production server specifications for every hosting workload. Servers managing multiple websites, databases, email accounts or high traffic will generally need additional CPU, RAM and storage capacity.

2. Networking Requirements

Your server must have:

  • A static public IPv4 address.

  • A fully qualified domain name (FQDN).

  • Working DNS resolution for the hostname.

  • Root-level SSH access.

  • A working internet connection.

  • A verified cPanel license or eligibility for the free trial.

An IPv6-only server is not supported. You must have at least one IPv4 address.

3. A Fresh AlmaLinux Installation

cPanel must be installed on a freshly installed operating system.

Avoid installing it on a server that already runs other hosting control panels, web servers or mail services. Existing software can conflict with the services installed and managed by cPanel.

Also, cPanel does not provide an uninstaller. Removing it requires reformatting the server.

Important: Back up any important data before reinstalling your operating system or beginning the installation process.

4. cPanel Licensing

cPanel & WHM requires a separate licence for each server.

If you are installing cPanel for the first time, you may be eligible for a free 15-day trial. You need a cPanel Store account with a verified email address to activate it. You can purchase a licence through the official cPanel Store.

If your dedicated server already includes a cPanel licence, check with your hosting provider to confirm that it is active and assigned to the correct public IP address.

Step 1: Connect to Your AlmaLinux Server and Update Packages

Start by connecting to your dedicated server through SSH using the root account.

From your local terminal, run:


ssh root@YOUR_SERVER_IP
                            

Replace YOUR_SERVER_IP with your server's public IP address.

Once connected, update the installed system packages:

bash

dnf update -y
                            

This command downloads and installs available package updates from the configured AlmaLinux repositories.

If the update installs a new kernel or requires a reboot, restart the server:


reboot
                            

Reconnect through SSH once the server is available again.

You can check the installed AlmaLinux version with:


cat /etc/os-release
                            

Confirm that the server is running AlmaLinux 9 or 10 before continuing.

Step 2: Configure a Fully Qualified Hostname

A properly configured hostname is important for cPanel installation, server identification and email services.

A hostname should use a fully qualified domain name, such as: server1.example.com

Do not use a hostname that matches a domain you intend to host on the same server.

First, create an A record through your DNS provider:

DNS Record Host Value
A server1 YOUR_SERVER_IP

Allow the DNS record to resolve publicly before continuing.

Now configure the hostname:

bash

hostnamectl set-hostname server1.example.com
                            

Check the configured hostname:


hostname -f
                            

You can also check DNS resolution:


getent hosts server1.example.com
                            

The hostname should resolve to the correct server IP address. A correctly configured hostname helps prevent DNS and email configuration problems later.

Step 3: Disable SELinux

SELinux (Security-Enhanced Linux) provides an additional security layer by enforcing access control policies on Linux processes and services.

However, cPanel requires SELinux to be disabled for compatibility.

Check the current SELinux status:


sestatus
                            

Open the SELinux configuration file:

bash

nano /etc/selinux/config
                            

Find the following setting and change it to disabled:


SELINUX=disabled
                            

Save the file and restart the server:


reboot
                            

After reconnecting, verify the configuration:


sestatus
                            

The expected output should include: SELinux status: disabled. Do not continue with the installation until SELinux is disabled.

Step 4: Prepare the Firewall

Before installing cPanel & WHM, prepare the server firewall according to cPanel's installation requirements.

The cPanel installer attempts to configure the necessary services and ports. However, cPanel recommends temporarily disabling the operating system firewall during installation.

If you are using the default AlmaLinux firewalld service, first save your existing firewall rules:

bash

iptables-save > ~/firewall.rules
                            

Then stop and disable the service:

bash

systemctl stop firewalld.service
systemctl disable firewalld.service
                            

Security warning: Disabling the operating system firewall removes an important layer of protection. Keep the installation period as short as possible, maintain access through SSH or your server's remote console, and ensure any upstream network firewall is configured appropriately.

After installation, configure a suitable firewall before hosting production websites. For AlmaLinux, cPanel documents the use of the nftables framework for firewall management. You can also use a compatible third-party firewall solution such as CSF or APF. Avoid running conflicting firewall managers together.

For remote dedicated servers, keep IPMI/KVM or another out-of-band console available in case a firewall rule blocks SSH access. Our IPMI and BMC remote server management guide explains how remote console access helps with server administration.

Step 5: Install Required Utilities

Before starting the installation, install curl and tmux:

bash

dnf install -y curl tmux
                            
  • curl downloads the official cPanel installer.

  • tmux keeps the installation session running if your SSH connection drops.

Start a new tmux session:


tmux new -s cpanel-install
                            

You are now ready to download and run the cPanel installation script.

Step 6: Install cPanel & WHM on AlmaLinux

cPanel provides an official installation script that downloads and installs the required software components.

Run the following command as root:

bash

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

Here is what each part does:

  • cd /home changes the working directory to /home.

  • curl -o latest -L downloads the latest cPanel installation script.

  • sh latest executes the downloaded installer.

The installer automatically installs and configures the required cPanel & WHM services. Installation time depends on your server hardware, network connection and package download speed. Do not interrupt the installation or restart the server while it is running.

Monitor Installation Progress

You can monitor the installation log from another SSH session:


tail -f /var/log/cpanel-install.log
                            

If your original SSH connection disconnects, reconnect and attach to the existing tmux session:


tmux attach -t cpanel-install
                            

Important: AlmaLinux and CloudLinux Licensing

If the server's public IP address already has an active CloudLinux licence, the cPanel installer may automatically convert the operating system to CloudLinux.

If you want to keep AlmaLinux, add the following installation option:


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

Use this option only when you specifically want to prevent the automatic CloudLinux conversion.

Step 7: Access the WHM Control Panel

Once cPanel finishes installing, you can access WHM through your browser. Open:


https://YOUR_SERVER_IP:2087
                            

Port 2087 is the default secure login port for WHM.

Enter your server credentials:

  • Username: root

  • Password: Your root password

A new installation may display a browser certificate warning because the server initially uses a self-signed certificate. This is expected for a new installation. You should configure valid service certificates during the initial setup.

Alternative WHM Login Method

If you cannot log in using your root password, generate a temporary WHM login URL from the server terminal:


/usr/local/cpanel/scripts/whmlogin
                            

The command generates a single-use login link that you can open in your browser. Keep this link private because it provides temporary access to the WHM interface.

Step 8: Complete the Initial WHM Configuration

After logging in for the first time, WHM displays its initial setup process. Complete the following configuration steps.

1. Accept the Licence Agreement

Review and accept the cPanel & WHM End User Licence Agreement. You must accept the agreement before continuing.

2. Activate Your cPanel Licence

If you are eligible for a trial, WHM provides an option to activate the free 15-day trial. Log in using your verified cPanel Store account and follow the activation instructions.

If you already have a paid licence, confirm that it is active for your server's IP address.

3. Configure Contact Information

Enter an email address that you regularly monitor. WHM uses this address to send important server notifications, including service alerts and administrative messages.

4. Configure Nameservers

Enter two nameservers for your hosting environment. For example:

  • ns1.example.com

  • ns2.example.com

These nameservers should be configured through your domain registrar or DNS provider, with the necessary DNS records and glue records where required. You must specify nameservers in WHM before you can create new hosting accounts.

5. Configure DNS Resolvers

DNS resolvers help your server translate domain names into IP addresses. You can manage them through: WHM → Networking Setup → Resolver Configuration

If your hosting provider has supplied DNS resolver addresses, use those. Otherwise, you can use a suitable public DNS resolver, such as Google's 8.8.8.8 and 8.8.4.4.

6. Configure Reverse DNS (PTR Records)

Reverse DNS maps your server's IP address back to a hostname. For example: YOUR_SERVER_IP → server1.example.com

A correctly configured PTR record is particularly important for reliable outgoing email delivery. Reverse DNS is normally managed through your hosting provider or IP address provider. Contact their support team if you cannot configure it yourself.

Step 9: Configure the Firewall for cPanel Services

After the installation and initial WHM configuration, restore firewall protection before using the server for production hosting.

cPanel requires several ports for website access, email, DNS and control panel services. The following table lists commonly required ports.

Port Service Protocol
22SSHTCP
25SMTPTCP
53DNSTCP/UDP
80HTTPTCP
443HTTPSTCP
465Secure SMTPTCP
587SMTP SubmissionTCP
993Secure IMAPTCP
995Secure POP3TCP
2083Secure cPanelTCP
2087Secure WHMTCP
2096Secure WebmailTCP

Port 2089 must also be allowed for outbound TCP connections so the server can communicate with cPanel's licensing services.

Only enable additional ports when the corresponding service is required. For example, if you use SFTP through SSH, you do not need to expose traditional FTP ports unless you specifically enable an FTP service.

Important Firewall Considerations

  • Use nftables or a compatible firewall solution for AlmaLinux.

  • Do not run multiple conflicting firewall managers.

  • Keep SSH access available while changing firewall rules.

  • Allow both TCP and UDP for DNS where required.

  • Check outbound connectivity to cPanel licensing services.

  • Test firewall rules before closing your existing SSH session.

If you use CSF or APF, follow its installation and configuration documentation rather than combining its rules with an independently managed firewalld configuration.

Step 10: Create Your First cPanel Hosting Account

Once WHM is configured, you can create your first hosting account. Log in to WHM and navigate to: WHM → Account Functions → Create a New Account

Enter the required information:

  • Domain name.

  • Account username.

  • Strong account password.

  • Contact email address.

  • Appropriate hosting package and resource limits, if configured.

Click Create to generate the hosting account. WHM will create an individual cPanel account for the domain.

You can then access the account through: https://YOUR_SERVER_IP:2083

From cPanel, you can manage website files, databases, email accounts, domain settings, SSL certificates, backups, and website applications. Your AlmaLinux server is now configured to host websites through cPanel & WHM.

Step 11: Secure Your cPanel Server Before Hosting Websites

Installing cPanel is only the first part of preparing a production hosting environment. Before moving customer websites or important business applications to the server, complete these security and maintenance tasks.

Enable Two-Factor Authentication

Enable two-factor authentication (2FA) for WHM administrator accounts. This adds another authentication step and helps protect access if a password is compromised.

Configure SSL Certificates

Use WHM's SSL/TLS management tools to configure valid certificates for server services and hosted domains. You can access: WHM → SSL/TLS → Manage Service SSL Certificates

You should also configure AutoSSL for eligible hosting accounts.

Configure Automated Backups

Set up automated backups through: WHM → Backup → Backup Configuration. Choose a suitable backup schedule and storage location. Whenever possible, keep backup copies on a separate server or external storage system rather than relying only on the same physical disks used for hosting.

Review Disk Partitions

Check your server's available storage and filesystem allocation: df -h. This helps identify available disk capacity and potential storage limitations.

Monitor Server Resources

Monitor CPU, RAM, storage and network usage regularly using Linux commands like top, free -h, and df -h. These commands help identify resource usage and potential performance issues as your hosting environment grows.

Common cPanel Installation Problems on AlmaLinux

Even when you follow the installation instructions, certain configuration issues can prevent cPanel from installing or operating correctly. Here are some common problems and their possible solutions.

Problem Possible Cause Recommended Solution
Installation stops because of insufficient memory Server does not meet the minimum RAM requirement Check available memory and increase RAM if necessary
Hostname configuration errors Hostname does not resolve correctly Configure the FQDN and verify its DNS records
SELinux compatibility errors SELinux is still enabled Disable SELinux and reboot
WHM does not load on port 2087 Firewall blocks access or installation is incomplete Check firewall rules and installation logs
cPanel licence activation fails IP address is not licensed or cannot reach licensing services Verify the licence and outbound connectivity on port 2089
Installation conflicts with existing services Server already contains incompatible software Reinstall a fresh AlmaLinux operating system
Cannot create hosting accounts Nameservers have not been configured Configure two nameservers in WHM
Browser displays a certificate warning Server uses an initial self-signed certificate Configure valid service SSL certificates
Server converts to CloudLinux IP address has an active CloudLinux licence Reinstall with the --skip-cloudlinux option if you need to retain AlmaLinux

You can also inspect the installation log to identify the cause of a failed installation:


tail -n 100 /var/log/cpanel-install.log
                            

If the issue persists, check the official cPanel installation troubleshooting documentation.

Frequently Asked Questions

Can I install cPanel on AlmaLinux 9? +

Yes. cPanel supports AlmaLinux 9 with cPanel & WHM version 114 or later. Make sure your server meets the hardware, networking and operating system requirements before starting the installation.

Does cPanel support AlmaLinux 10? +

Yes. AlmaLinux 10 is supported from cPanel & WHM version 132 onwards. Older cPanel versions that do not meet this requirement cannot be used for an AlmaLinux 10 installation.

How much RAM does cPanel require? +

cPanel requires at least 2 GB of RAM, with 4 GB recommended. If you plan to install ClamAV, cPanel recommends at least 3 GB. Production hosting environments may require considerably more memory depending on the number of websites and services running on the server.

Can I install cPanel on an existing AlmaLinux server? +

cPanel requires a freshly installed operating system. Installing it on an existing server with websites, mail services or other control panels can cause compatibility issues. Back up your data and prepare a clean AlmaLinux installation first.

Is cPanel free to use? +

No. cPanel & WHM requires a paid licence for each server. New installations may qualify for a free 15-day trial, which requires a verified cPanel Store account.

Does cPanel support Rocky Linux? +

No. cPanel no longer supports Rocky Linux for new installations from version 134. AlmaLinux is a suitable alternative for users looking for a supported RHEL-compatible distribution.

Can I install cPanel on a Windows server? +

No. cPanel & WHM is designed for Linux-based operating systems. If you need a control panel for a Windows hosting environment, consider a Windows-compatible solution such as Plesk.

What is the difference between cPanel and WHM? +

cPanel is designed for individual website owners to manage their hosting accounts, while WHM is designed for server administrators to create and manage multiple hosting accounts and configure server-wide settings.

Which port does WHM use? +

WHM uses port 2087 for secure HTTPS access. You can access it through: https://YOUR_SERVER_IP:2087

Do I need a dedicated IP address for cPanel? +

cPanel requires a valid, publicly visible static IP address with working DNS resolution. An IPv6-only server is not supported.

Conclusion

Installing cPanel & WHM on AlmaLinux 9 or 10 provides a practical way to manage websites, email accounts, databases and hosting services through a centralised interface.

The installation process is straightforward when the server is prepared correctly. A fresh operating system, sufficient hardware resources, a properly configured hostname, disabled SELinux and a suitable firewall configuration are essential for a successful setup.

If you are looking for dedicated server infrastructure for a cPanel hosting environment, explore eServers UK's cPanel Dedicated Servers.

eServers has been a cPanel Partner for over a decade, providing dedicated server solutions with support for nameserver configuration, custom Apache modules and failover cluster setups. Optional services include managed backups, dedicated hardware firewalls and server management.

Discover eServers Dedicated Server Locations

eServers provides reliable dedicated servers across multiple global regions. Whether you need low latency, regional compliance, or proximity to your audience, our wide geographic coverage ensures the perfect hosting environment for your project.

Our Bandwidth providers

We are Partners with 15 +

At eServers , we proudly partner with 15+ leading global tech providers to deliver secure, high-performance hosting solutions. These trusted alliances with top hardware, software, and network innovators ensure our clients benefit from modern technology and enterprise-grade reliability.

Hosting Solutions