habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

Install cPanel WHM Alma Linux 8

2 min read

install cpanel whm almalinux

Hi Dude, today I will write about install cPanel WHM on Alma Linux 8 OS. Alma Linux is free and Open Source which is claimed to be 1:1 binary compatible with RHEL® and pre-Stream CentOS.

Before continue installation, there are several steps that must be done.

Put Dedicated server or Virtual Host installed Alma Linux.

We must already have a server with newly installed alma linux. I have written this article in a previous post.

Networking requirements

Hostname Alma Linux

Your hostname must meet the following requirements:

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

IP addresses

Your IP address must meet the following requirements:

  • Be a valid IP address.
  • Be a valid subnet address.
  • Be a default gateway IP address.
  • Be a 1:1 NAT and NAT loopback configuration if you server resides in a NAT-configured network.

Ethernet device

You must configure your Ethernet device with a static IP address and fully-qualified hostname. The system attempts to detect and set the ethernet device during the installation process.


The installer will attempt to open the necessary ports during the installation process. We recommend that you disable OS firewalls before you run the cPanel & WHM installation. When the installation process finishes, we recommend that you then configure a firewall with a third-party client such as APF or CSF.

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


On systems that run the AlmaLinux OS 8 operating system, the cPanel & WHM installer will automatically disable the Network Manager service and enable the network.service service.

See also  Easy Fix XAMPP Server Error (Error 500)

Hardware requirements

Operating system and versionProcessorRAMDisk SpaceArchitecture
AlmaLinux OS 81.1 GHzMinimum: 1 GBRecommended: 2 GBMinimum: 20 GBRecommended: 40 GB64-bit


Disable SELinux

You must disable SELinux to make your system compatible with cPanel & WHM.

To disable SELinux security features, use one of the following methods:

  • Use the graphical interface to disable SELinux while you configure your operating system, and then reboot the server.
  • Edit the /etc/selinux/config file to set the SELINUX parameter to disabled, and then reboot the server. The contents of the /etc/selinux/config file should resemble the following example:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
# SELINUXTYPE= can take one of these two values:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.

Perl installation

Perl must exist on your server before the installation script for cPanel & WHM can run successfully. If Perl does not exist during installation, the cPanel & WHM installer attempts to install Perl via the yum -y install perl command.

yum -y install perl


When you install your operating system (OS), we recommend that you use the XFS® or ext4 filesystems.


PartitionRAM and minimum size
/N/A — Grow to fill disk (40 GB recommended, 20 GB minimum).Note:To host a greater number of accounts, allocate more disk space to this partition.
swap2 GB or less — Two times the amount of RAM on the server.2 GB to 4 GB — The same as the amount of RAM on the server.4 GB or more — 4 GB

Ok. That it.

See also  Zimbra zclient.IO_ERROR (invoke Connection refused, server: localhost)

Ready for Installation

after the above requirements are completed, then we just need to execute the magic install command below. To install cPanel & WHM on your server, run the following command:

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

This command changes your session to the home directory, downloads the latest version of cPanel & WHM, and runs the installation script.

Yeah, this is short article about install cPanel WHM in Alma Linux


Let's Buy Me Coffee.

Buy Me a Coffee at ko-fi.com

habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

Ispconfig Nginx Directives Laravel

In a typical Laravel installation, the public folder contains all of the publicly accessible files for the application. This includes the index.php file, which...
47 sec read

How to Hide Version nginx

Nginx is a popular web server that powers many websites and applications. However, by default, nginx reveals its version number in the HTTP response...
1 min read

How to Install SSH in Windows 10/11

SSH (Secure Shell) is a protocol that allows us to securely remote servers and devices over a network. SSH can be used for various...
1 min read

Leave a Reply

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

Never miss a story from us, get weekly updates in your inbox