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.
Firewalls
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
Utilities
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.
Hardware requirements
Operating system and version | Processor | RAM | Disk Space | Architecture |
---|---|---|---|---|
AlmaLinux OS 8 | 1.1 GHz | Minimum: 1 GBRecommended: 2 GB | Minimum: 20 GBRecommended: 40 GB | 64-bit |
Warning:
- We strongly recommend that you install at least 3 GB of RAM if you want to install the Clam AntiVirus Scanner (ClamAV) antivirus software.
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 theSELINUX
parameter todisabled
, 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.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
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
Filesystems
When you install your operating system (OS), we recommend that you use the XFS® or ext4
filesystems.
Partitions
Partition | RAM 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. |
swap | 2 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.
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
source:
Let's Buy Me Coffee.https://saweria.co/habibzain https://ko-fi.com/habibzain