If you’re managing web hosting services, WHM cPanel is a popular choice for its user-friendly interface and powerful features. When combined with CloudLinux 8, it ensures enhanced security, stability, and performance for your web hosting environment. This guide walks you through the steps to install WHM cPanel on CloudLinux 8.

Prerequisites

Before starting the installation, make sure you have:

  • A server running CloudLinux 8.
  • Root access to the server.
  • A valid cPanel license.

Step 1: Update Your Server

First, ensure that your server is up-to-date. Log in to your server via SSH as the root user and run the following commands:

yum update -y

Step 2: Install Perl

WHM cPanel installation requires Perl. You can install it using the following command:

yum install perl -y

Step 3: Download and Install WHM cPanel

Download the latest WHM cPanel installation script and execute it. This script will handle the installation process.

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

The installation process can take anywhere from 30 minutes to an hour, depending on your server’s performance and internet speed.

Step 4: Complete the Initial Setup

Once the installation is complete, you can access the WHM interface through your web browser. Go to:

https://your-server-ip:2087

You’ll be prompted to log in. Use your root username and password.

Step 5: Activate Your License

After logging in, you need to activate your cPanel license. Follow the on-screen instructions to enter your license key. You can purchase a cPanel license from the official cPanel website or a licensed reseller.

Step 6: Configure Basic Settings

Once your license is activated, WHM will guide you through the initial setup wizard. Here are some of the key settings you’ll configure:

  1. Contact Information: Enter an email address where you can receive important updates and notifications.
  2. Nameservers: Configure the default nameservers for your server.
  3. Service Configuration: Set up various services like FTP, Mail, and DNS.

Step 7: Install CloudLinux Components

To fully leverage CloudLinux’s features, you’ll need to install additional components:

  1. Install CageFS: A virtualized file system that isolates each user in their own environment.
    yum install cagefs -y
    cagefsctl --init
  2. Install LVE Manager: Allows you to manage resource usage limits for each user.
    yum install lvemanager -y
  3. Enable PHP Selector: Allows users to choose the PHP version for their sites.
    yum groupinstall alt-php

Step 8: Secure Your Server

It’s essential to secure your server to protect it from unauthorized access and potential threats. Here are a few steps you can take:

  • Configure a Firewall: Use CSF (ConfigServer Security & Firewall) to protect your server.
    yum install csf -y
    csf -r
  • Disable Root Login: Configure SSH to disable root login and use sudo for administrative tasks.
  • Regular Backups: Set up regular backups to ensure you can recover data in case of an emergency.

Conclusion

Installing WHM cPanel on CloudLinux 8 enhances your server’s performance, security, and stability. By following this guide, you can set up a robust web hosting environment that caters to your needs. Remember to keep your server updated and regularly monitor its performance to ensure smooth operation.

Feel free to leave comments or reach out if you encounter any issues during the installation process.

Happy hosting!