Installing cPanel on Servers with Less Than 2 GB RAM

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

  1. Operating System:

    • Supported: CentOS, AlmaLinux, Rocky Linux 8+

    • Minimal OS installation is recommended (no GUI).

  2. Server Requirements:

    • CPU: 1+ cores

    • RAM: Minimum 1 GB, ideally 2 GB

    • Disk Space: Minimum 20 GB, recommended 40+ GB

  3. 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

  1. After installation, access WHM via:

https://your-server-ip:2087
  1. Log in using root credentials and complete the initial setup wizard to configure networking, nameservers, and licenses.

  • 2gb
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Check if a Server Runs cPanel & WHM or WP Squared

Steps Open the server terminal. Run this command: readlink...

Nginx Fails to Start Due to Ports Already in Use (WP2)

Issue:When attempting to start Nginx on a WPSquared (WP2) server, the service fails with the...