cPanel-Almalinux-Trayohost


cPanel is a control panel software that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. It is commonly used by web hosting providers to allow their customers to manage their own web hosting accounts. In this tutorial, we will show you how to install cPanel on AlmaLinux 8, a community-supported, enterprise-grade Linux distribution based on Red Hat Enterprise Linux (RHEL).


What is AlmaLinux 8, and why choose it?

Almalinux8 is a Linux distribution based on Red Hat Enterprise Linux 8. It is designed for use in enterprise environments and includes a variety of tools and features for system administration and management. Almalinux8 is known for its stability and security, making it a popular choice for businesses and organizations that rely on reliable and secure computing systems.

There are several reasons to choose AlmaLinux:

  1. AlmaLinux is free and open source, which means that users have complete control over their operating system and can customize it to meet their specific needs.
  2. AlmaLinux is regularly updated with the latest security patches and features, which helps to keep servers secure and up-to-date.
  3. It has a large and active community of users and developers, which can be a valuable resource for troubleshooting and getting support.
  4. It's designed to be easy to use, even for those who are new to Linux. It includes a user-friendly graphical interface and a range of tools and utilities that make it easy to manage and maintain servers.

Overall, AlmaLinux is a solid choice for a Linux VPS or Dedicated server, particularly for those who are looking for an enterprise-grade solution that is both reliable and customizable.


Minimum Resource Requirement To Install cPanel On AlmaLinux

  • A VPS Or Dedicated Server With Almalinux Operating System
  • At least 1 GB of RAM (2 GB or more is recommended)
  • 1 core CPU 1.1 GHz
  • At least 20 GB of disk space (40 GB or more is recommended)
  • Static IPv4 address


Here is the process for installing cPanel/WHM on Almalinux 8:

Log in to your server on SSH/Putty as the root user.

1- Update Almalinux8

Install the necessary dependencies by running the following command to update the server before installing cPanel:

yum update -y

You will be asked yes or not, that you should type y and press enter to proceed with the update.

2- Installing Perl Curl

Perl and  Curl is the language that required cPanel has been written with.
Run the following command to make sure that Perl & Curl is installed on the server.

yum install perl curl

3- Add Hostname

Cpanel requests for a hostname that should be in (FQDNFully Qualified Domain Name format. For example, in this topic, we will use myserver.mydomain.com, and instead of this, you should put your own hostname.
Here is the command to set it:

hostnamectl set-hostname myserver.mydomain.com

4- Disabling Network Manager Service

Network Manager service is used to connect computers; cPanel asks to remove this service or disable it when installing cPanel.

service NetworkManager stop
chkconfig NetworkManager off

6- Disable SELinux Temporarily

SELinux is the main security defender of the Linux Kernel, and it is better to be disabled to prevent any access issues when we install cPanel on CentOS Server. You can use the below command to disable it temporarily.
sudo setenforce 0

7- Download the cPanel/WHM installation script by running the following command:

wget https://securedownloads.cpanel.net/latest

8- Run the installation script with the following command:

sh latest


Enabling Network Manager Service

 

Remember to enable this service once the installation was completed with the below commands.

service NetworkManager start
chkconfig NetworkManager on
Note: It is not essential to reboot the server, but you can still restart all installed services through the below command.
reboot


Follow the prompts to complete the installation. This may take some time, as it will download and install all of the necessary files and dependencies.


Once the installation is complete, you can access cPanel/WHM by visiting the following URL in your web browser:

https://your_server_ip:2087

Replace "your_server_ip" with the actual IP address of your server.

You will be prompted to log in with the username and password that you set up during the installation process.

I hope this helps! Let me know if you have any questions or need further assistance.