This guide will walk you through the process of installing WHM cPanel on Ubuntu 22.04 LTS.

Prerequisites

Before you begin, ensure you have the following:

  1. A Fresh Ubuntu 22.04 LTS Server: A clean installation is recommended to avoid conflicts.
  2. Root Access: You need root or sudo privileges to install WHM cPanel.
  3. Static IP Address: Ensure your server has a static IP address.
  4. Domain Name: Having a domain name is crucial for setting up cPanel.

Step-by-Step Installation Guide

Step 1: Update Your Server

First, update your server to ensure all packages are up-to-date:

sudo apt update
sudo apt upgrade -y

Step 2: Set Hostname

Set a fully qualified domain name (FQDN) as the hostname for your server:

sudo hostnamectl set-hostname server.example.com

Replace server.example.com with your actual domain name.

Step 3: Disable Network Manager

WHM cPanel requires network manager to be disabled. You can do this with the following commands:

sudo systemctl stop NetworkManager
sudo systemctl disable NetworkManager

Step 4: Install Required Packages

WHM cPanel requires certain packages to be installed. Run the following command to install them:

sudo apt install perl curl -y

Step 5: Download and Install WHM cPanel

Next, download the latest installer script for WHM cPanel:

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

Run the installer script:

sudo sh latest

The installation process can take some time, so be patient.

Step 6: Complete the Installation

After the installation is complete, you’ll need to access the WHM interface to complete the setup. Open your web browser and navigate to:

https://your-server-ip:2087

Replace your-server-ip with your server’s actual IP address.

Step 7: Log in to WHM

Log in with the root user and password. You’ll be guided through the initial setup wizard where you can configure your settings.

Step 8: Configure Basic Settings

Once logged in, you’ll need to configure some basic settings:

  1. Setup Networking: Ensure your server’s hostname and IP address are correctly configured.
  2. License Activation: Activate your WHM cPanel license.
  3. Setup Nameservers: Configure your nameservers for domain management.

Conclusion

Installing WHM cPanel on Ubuntu 22.04 LTS can significantly streamline the management of your web hosting services. With its intuitive interface and powerful features, you’ll be able to manage your websites, email accounts, and databases with ease. Follow the steps outlined in this guide to get your WHM cPanel up and running quickly.

Final Tips

  • Backup Regularly: Ensure you have a backup strategy in place to protect your data.
  • Keep Software Updated: Regularly update WHM cPanel and your server packages to keep your server secure.
  • Monitor Performance: Use WHM’s monitoring tools to keep an eye on your server’s performance and resource usage.

By following these steps and tips, you’ll be well on your way to efficiently managing your web hosting services with WHM cPanel on Ubuntu 22.04 LTS.