Introduction

cPanel/WHM is a web hosting control panel that simplifies server and website management through an easy-to-use graphical interface. This guide outlines the steps required to install cPanel/WHM on a new server or VPS.

Prerequisites

Before proceeding with the installation, ensure the following requirements are met:

  • A fresh installation of a supported operating system (AlmaLinux, Rocky Linux, CloudLinux, or Ubuntu supported by cPanel).
  • Root or sudo access to the server.
  • A valid hostname configured on the server.
  • At least 2 GB RAM (4 GB or higher recommended).
  • Minimum 20 GB of available disk space.
  • Network connectivity with a valid public IP address.
  • No existing web hosting control panel installed on the server.

Implementation

  1. Connect to the server via SSH as the root user.
  2. Create a directory for the cPanel installation files:
$mkdir /home/cpins
  1. Navigate to the installation directory:
$cd /home/cpins
  1. Download the latest cPanel installer:
$ wget http://layer1.cpanel.net/latest
  1. Run the installer:
$sh latest
  1. Wait for the installation to complete. The installation process may take between 30 minutes and 2 hours depending on the server specifications and network speed.
  2. Once the installation is complete, access WHM using:

http//<Server_IP:2086

or, if SSL is enabled:

http//<Server_IP:2087
  1. Complete the initial WHM setup wizard by accepting the license agreement, configuring contact information, nameservers, and other required settings.

Conclusion

The cPanel/WHM installation is now complete. You can log in to WHM using the root credentials and proceed with the initial configuration, account creation, DNS setup, and hosting management tasks. It is recommended to update the server and configure security settings before deploying production websites.

Leave a Reply