Overview:
cPanel & WHM is a popular web hosting control panel that usually requires a minimum of 2 GB RAM. For testing, development, or low-load environments, it is possible to install cPanel on servers with less than 2 GB RAM using an automated script that handles necessary checks and adjustments.
Prerequisites
-
Operating System:
-
Supported: CentOS, AlmaLinux, Rocky Linux 8+
-
Minimal OS installation is recommended (no GUI).
-
-
Server Requirements:
-
CPU: 1+ cores
-
RAM: Minimum 1 GB, ideally 2 GB
-
Disk Space: Minimum 20 GB, recommended 40+ GB
-
-
Network & Access:
-
Root SSH access to the server.
-
Open ports for cPanel (2082, 2083, 2086, 2087, 2089, 2096, 80, 443, etc.)
-
Installation Steps
1. Download the cPanel Install Script
curl -O https://scripts.cpanelcentral.com/cpanel-install.sh
This script handles most of the installation logic, including dependency checks, required configurations, and optional memory adjustments for low-RAM servers.
2. Run the Installer
bash cpanel-install.sh
Notes:
-
The script automatically handles low-memory servers by enabling temporary swap space or adjusting memory settings.
-
The installation can take 30–60 minutes, depending on your server resources and network speed.
3. Post-Installation
-
After installation, access WHM via:
https://your-server-ip:2087
-
Log in using root credentials and complete the initial setup wizard to configure networking, nameservers, and licenses.
