How to Install WHM/cPanel in Almalinux?

install-cpanel-in-almalinux
cPanel is a web hosting control panel that allows users to manage all types of website & server tasks directly from their hosting accounts. These tasks encompass checking web server resources such as bandwidth, managing domain names, organizing website files, creating email accounts, and more. As it is easy to use, a majority of hosting providers offer it with Shared Hosting, Cloud Hosting, VPS hosting, Dedicated Servers, etc.

WHM (WebHost Manager) is an administrative control panel designed for managing dedicated servers or VPS (Virtual Private Servers). It provides hosting providers with tools to efficiently oversee and manage customer accounts, server settings, security configurations, and other administrative tasks related to web hosting services.

Wondering how to install it in Almalinux?

In this guide, we have listed the whole process of installing WHM/cPanel in Almalinux. So let’s begin with what Almalinux is.

What is AlmaLinux, and Why Choose AlmaLinux? 

AlmaLinux is a free Cloudlinux alternative to CentOS, first released in March 2021.

AlmaLinux is a free, community-driven operating system gaining popularity among Linux enthusiasts, developers, and businesses. It serves as a replacement for CentOS Linux, which was discontinued by Red Hat in December 2020. AlmaLinux aims to offer stability, security, and reliability to former CentOS users, providing long-term support and compatibility with various software and hardware configurations.

In between all this, cPanel announced it would not support the CentOS stream. So now, AlmaLinux 8 has been released and will be supported until 2029.

Why Choose AlmaLinux? 

There are several reasons to choose AlmaLinux:

  • Free and open-source:

    You do not have to pay for an RHEL license if you choose AlmaLinux.

  • Continuity:

    AlmaLinux offers continuity for users previously relying on CentOS, providing a seamless transition with its similar features and compatibility.

  • Stability:

    AlmaLinux is known for its stability, ensuring consistent performance for both individual users and businesses.

  • Support:

    AlmaLinux quickly fixes bugs and issues and releases the update on time.

  • The long-term support:

    AlmaLinux 8.x will be supported until 2029, giving users plenty of time to trust it.

  • Virtualization technology:

    AlmaLinux Is supported by virtualization technologies such as OpenVZ and KVM.

  • Security:

    AlmaLinux prioritizes security, implementing measures to protect against potential threats and vulnerabilities.

  • Compatibility:

    AlmaLinux is compatible with a wide range of software and hardware configurations, offering flexibility for users’ needs.

Prerequisites

  • Valid static IP address 
  • Hostname
  • 2 GB recommended. (1 GB is also fine) 
  • Free space of 20 GB in hard drive

Note: You cannot uninstall the control panel from the server once you have installed it.
If you want to remove it, you need to reinstall AlmaLinux. 

How to Install the WHM/cPanel on AlmaLinux 8process-to-install

First, we need to update the existing packages to the latest version.

1. Run the system

Run the following command:

yum update

yum upgrade

2. Install Perl and Curl

The cPanel is written in Perl, so you need to install the Perl on Almalinux 8. You can also install curl to download the cPanel installation script. 

yum install perl curl

3. Download the WHM cPanel installation script

Run this line to download the script to the main directory to automate the installation procedure.

cd /home

curl -o latest -L https://securedownloads.cpanel.net/latest

4. Run the cPanel installation script

Run the given command to start the execution of the downloaded script.

sh latest

5. Log in to WHM

To access the WHM, enter “https://Server_IP:2087” into the browser’s address bar. 

Now enter the AlmaLinux root user and password to access data for WHM and accept the terms and conditions. 

6. Apply for a WHM/cPanel trial license

To create an account with the WHM service, click on the login button. Once a 15-day free trial has been issued, add the email address and hosting service naming server details. 

7. WHM dashboard

To start hosting a website, create a cPanel account on it. 

Here are a few directories for cPanel installed stuff, in case we need to access it from the command line on AlmaLinux 8.

cPanel directories: /usr/local/cpanel

Third-party tools: /usr/local/cpanel/3rdparty/

Directories of addons or cPanel add-ons: /usr/local/cpanel/addons/

Basic files like PHPMyAdmin, themes: /usr/local/cpanel/base/

cPanel binaries: /usr/local/cpanel/bin/

CGI files: /usr/local/cpanel/cgi-sys/

Access to cPanel & Error event files: /usr/local/cpanel/logs/

WHM files: /usr/local/cpanel/whostmgr/

Apache configuration: /etc/httpd/conf/httpd.conf

Configuration of the Exim mail server: /etc/exim.conf

Named configuration files: /etc/named.conf

Configuration files ProFTP and Pureftpd: /etc/proftpd.conf and /etc/pure-ftpd.conf

cPanel user files: /var/cpanel/users/username

cPanel configuration files (tweak settings): /var/cpanel/cpanel.config

Network configuration files: /etc/sysconfig/network

Addons and subdomain information: /etc/userdomains

cPanel update files: /etc/cpupdate.conf

Clamav configuration files: /etc/clamav.conf

MySQL configuration files: /etc/my.cnf

PHP.ini configuration files: /usr/local/lib/php.ini

(Visited 24,620 times, 5 visits today)

Leave a Reply

AlphaOmega Captcha Classica  –  Enter Security Code
captcha      
 

This site uses Akismet to reduce spam. Learn how your comment data is processed.