DED9

How to Install WHM/cPanel Control Panel on AlmaLinux 8

Why AlmaLinux 8?

You might say why use AlmaLinux instead of CentOS 7 or CentOS 8. Previously, CentOS 6 was the most popular operating system to install cPanel, but it ended its life cycle on November 30, 2020. Then users switched to CentOS 7 and the life cycle of CentOS 7 ends on June 30, 2024. As you know, CentOS 8 is also released.

We all like to use the latest stable version of operating systems, so it seems that CentOS 8 should be the best alternative to CentOS 7 for cPanel installation. The issue is that Red Hat has announced that it will no longer support CentOS 8 after December 31, 2021 and will upgrade to the CentOS 8 stream.

 

Also, cPanel has announced that it does not support CentOS Stream. Many users were not satisfied with these decisions. In the meantime, AlmaLinux OS 8 was released, which was developed based on RHEL 8. AlmaLinux 8 is developed by CloudLinux and this community will develop it in the future. The good news is that AlmaLinux is completely free and will be supported until 2029, so there is no need to worry and you can install the control panel on this operating system right now. Stay with us to explain the tutorial.

Minimum resources required to install cPanel on AlmaLinux

Connect to Putty

For more details, you can refer to How to use Putty to connect to a Linux VPS.

Prerequisites for installing cPanel on AlmaLinux

 

Note: Before installation, I must mention that you can paste commands by right-clicking inside the SSH (Putty) connection.

Note: Use a root username or a username that has root access to install cPanel on AlmaLinux. Otherwise, you may need to prepend sudo to every command you run. For example, “sudo yum update”. To get more details about sudo check out the article Difference between su and sudo command in Linux What exactly is sudo.

 

1- Update AlmaLinux 8

Use this command to update the server before installing cPanel. The update process will take a few minutes depending on your network speed and resource value.

yum update -y

 

You will be prompted to type yes or no and press enter to continue the update.

 

2- Disable the operating system firewall

cPanel recommends to disable AlmaLinux operating system firewall after installation and use firewalls like CSF. You can disable the AlmaLinux operating system firewall using the following commands.

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

 

3- Disable SELinux

For your system to be compatible with cPanel installation, you need to disable SELinux. To do this, you need to edit the SELinux configuration file and change the SELINUX parameter from enforcing to disabled. To edit the file, you can use the VI editor and open this file using the following command:

# vi /etc/selinux/config

 

To be able to enter the code inside the file, press the I key and C=change SELINUX=enforcing to SELINUX=disabled to save the changes, press the Esc key and type: wq

The output should look like this

 

# 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

You need to restart the server for the changes to take effect.

4- Install Perl

Perl is the language in which cPanel is written, and if this language is not present on your server, cPanel will not run. To ensure that Perl is installed on the server, run the following command.

yum install perl

 

5- Installing Curl

Curl is required to download the cPanel installation script. The following command can install Curl

yum install curl

 

6- Add the host name

cPanel requires you to add the hostname in domain name (FQDN) format. For example, here we have used myeserver.mydomain.com, but you should enter your own hostname.

 

hostnamectl set-hostname myeserver.mydomain.com

 

Disable the Network Manager service

The network manager service is used to connect computers. cPanel asks to remove or disable this service during installation. On systems running AlmaLinux 8, installing cPanel automatically disables the Network Manager service and enables network.service.

Activate WHM / cPanel 15-day free trial license

Previously, you didn’t need to do anything to activate your free 15-day cPanel license. But now, you need to login to your cPanel Store account. If you have an account, click login and if you don’t have one, register. We will explain how to do it in the following.

This section includes registration and continuing steps to create a free 15-day cPanel license.

To generate a free license, you need to login to your cPanel web interface after installation. You will then be prompted to log in to your account or register if you do not have one.

Use your server username and password to log in to your WHM account.

 

Read the terms of cPanel and agree to all if you want!

 

In this step, there are 2 options that we can choose one. To log in or sign up for your cPanel Store account if you have one.

If you don’t have an account, click Create Account.

 

Enter your email address, agree to the cPanel Terms of Use, and click Create Account.

 

 

You will now receive an email to set a password for your cPanel client account.

Note that if you are logged into your email in the same browser as you configure WHM and create the account, you will be asked to allow access to your server IP to the email address you entered.

To do this, select Allow access.

 

At this point, you will receive a code that you must enter.

 

This page indicates that your trial license activation was successful. So you can go to the server settings section.

 

In the next section, you must enter an email address to receive possible error notifications from WHM.

Then you must enter 2 name servers. Half servers are used to connect your domain or subdomain to the WHM server.

 

And congratulations, you have finished installing cPanel WHM and creating a free trial license.

 

And congratulations, you have finished installing cPanel WHM and creating a free trial license.

 

Note: After installing WHM and its initial configuration, reboot the server to apply kernel and software updates.

Purchase, Verify and Update a cPanel License Purchase a cPanel License: You can order a cPanel license from the Licenses page of our website.

cPanel License Verification: If you want to make sure that your license has been activated successfully, you can use the cPanel verification system.

cPanel license update: after ordering the license, you must run this command on your server and the license will be updated as a result.

Conclusion

Installing the cPanel control panel on Alma Linux is a simple but important process that allows you to better manage your server. You can easily install this control panel on your server and take advantage of its features by following the steps to install cPanel in Alma Linux that was reviewed here. We hope this guide has been useful to you and will lead to your success in installing and using cPanel on Alma Linux.

Die mobile Version verlassen