As CentOS is going to End of Life in June 2024, so the Almalinux 8 has been taken place of CentOS for installting WHM/cPanel. Almalinux 8 EOL (End OF Life) is 2029. It support CloudLinux 8 that has same EOL time period.
To install cPanel / WHM on Almalinux 8 is very easy if you follow this article. First of All, you need to get ready your Server with Almalinux 8 along with ext4. You can find it is OS templates provided by your Server provider, or you can ask them to setup Almalinux 8 minimal ext4.
Once your server is ready with Almalinux 8, it is recommended to setup hostname for the server. You can setup it with your subdomain like server.mydomain.com or any of your choice. Please make it sure you have added A record in DNS of the domain for hostname
You can validate it by running command hostname.
Now, you need to update it, so if there is anything outdated, it will be updated. Run this command:
yum -y update
Once everything update, now you need to disable Firewall. Follow these commands:
iptables-save > ~/firewall.rules
systemctl stop firewalld.service
systemctl disable firewalld.service
Next, we also need to disable SELinux, you can check this file using vi or vim command and check either SELinux is enabled or disabled.
The file looks like this, find the row having SELINUX=disabled:
# 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. SELINUX=disabled # SELINUXTYPE= can take one of these three values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted
Next, you need to install Perl and Curl.
yum -y install perl
It is possible that curl is already installed, but you should run this command as well:
yum -y install curl
Now you are ready to install cPanel. Please make it sure, you have cPanel license for your server IP before running this command:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
It will take some time based on your server resources and network speed. You can enable Network Management service if you want, but it is not compulsory.
service NetworkManager start chkconfig NetworkManager on
Now, all Done!