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.

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.

See also  cPanel Get All Email Address and Mail Forwarder

Hardware requirements

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

Warning:

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.
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

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  Install Unbound Ubuntu 20.04/22.04 with Compile

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.

Buy Me a Coffee at ko-fi.com

https://saweria.co/habibzain
https://ko-fi.com/habibzain
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.

Easy Create Laravel Project with Composer

Requirement Laravel, a popular PHP framework, is renowned for its elegant syntax and robust features, making it a top choice for web developers. One...
habibzain
1 min read

Virtualbox Change Storage Size

Changing the storage size of a virtual machine in VirtualBox involves a few steps. Here’s a general guide. Backup your Virtual Machine (VM) Before...
habibzain
35 sec read

Easy Setup Logrotate Nginx Ubuntu

Log rotation is an important aspect of managing log files on a Linux system, including those generated by Nginx. Logrotate is a utility that...
habibzain
1 min read

Leave a Reply

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

Never miss good article from us, get weekly updates in your inbox