Stories from the Secure Uplink
Install cPanel WHM on AlmaLinux 9 VPS – 2025 Guide
Install cPanel WHM on AlmaLinux 9 VPS – 2025 Guide

Install cPanel WHM on AlmaLinux 9 VPS – 2025 Guide

Install cPanel WHM on AlmaLinux 9 VPS – blog cover image

Install cPanel WHM on AlmaLinux 9 VPS: Step-by-Step Guide

Looking to install cPanel WHM on AlmaLinux 9 VPS? This step-by-step guide will help you configure everything from networking to final setup. This is a powerful web hosting control panel solution for managing web applications on your VPS through your web browser of choice.

While cPanel manages individual hosting accounts, WHM is an administrative interface that provides control over the entire server and multiple cPanel accounts.

Pre-installation Requirements for cPanel WHM on AlmaLinux 9 VPS:

  • A clean server installation of AlmaLinux9 64bit (you can easily perform a reinstallation of your server with our AlmaLinux9 template as described in our article here)
  • Root access to your VPS
  • Minimum 2GB RAM (4GB recommended)
  • Minimum 20GB disk space (40GB recommended)
  • The static IP address of your VPS
  • A cPanel license (cPanel is not free/open source! A license can be ordered as an add-on here)

Note: cPanel licenses are issued per IP address.

Networking requirements:

Your hostname must meet the following requirements:

  • Be a registered and fully-qualified domain name
  • Does not match any of your server’s domains
  • Be a maximum of 60 characters in length
  • Resolves to a valid IPv4 or IPv6 address

To check that in the server:

hostnamectl

or, to change it:

hostnamectl set-hostname server.yourdomain.com

Edit the /etc/hosts file to match:

127.0.0.1 server1.yourdomain.com server1 localhost

Step-by-step installation (you will need to do this part while logged in as root):

  1. Set a password for root (this will be used by the default root user in cPanel & WHM)
  2. First, update the server:
    dnf update -y
    (Reboot the server if kernel or core libraries were updated)
    Then, download the latest version of cPanel & WHM:
    cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest
    Next, install Perl:
    dnf install perl -y
    or
    yum -y install perl
    After that, disable SELinux (cPanel doesn’t support SELinux in enforcing mode): Edit the /etc/selinux/config file and set the SELINUX parameter to disabled.
    SELINUX=disabled
    Then reboot the server.
    Finally, run the installer script:

    sh latest

3. Accessing cPanel & WHM

After installation is complete, you can now access cPanel & WHM from your browser of choice:

  • WHM: https://your_server_IP:2087
  • cPanel: https://your_server_IP:2083

For login use:

  • Username: root
  • Password: your server’s configured root password

If you don’t have a valid cPanel license issued for the IP address of the server, you will be prompted to get started with a free cPanel trial.

And that’s it! You’ve successfully learned how to install cPanel WHM on AlmaLinux 9 VPS. This setup allows you to manage hosting accounts efficiently while maintaining full control over your environment.

Leave a Reply

Your email address will not be published. Required fields are marked *