Installing cPanel & WHM and System Requirements on CloudLinux, Rocky Linux, and Ubuntu

This article provides a complete guide to installing cPanel & WHM on CloudLinux, Rocky Linux, and Ubuntu servers. It covers all essential system requirements, including licensing, networking, hardware, SELinux, filesystems, virtualization environments, and installation commands. The content is fully based on official cPanel documentation and outlines every critical step needed for a successful installation.

cPanel installationLinux server requirementsCloudLinux Rocky Ubuntu

~4 min read · Updated Feb 14, 2026

1. Introduction


Installing cPanel & WHM on a Linux server requires meeting several hardware, software, and networking prerequisites. Official documentation emphasizes that installation must occur on a freshly installed operating system and that the server must have a public, static IP address.


The documentation states: “You must log in to the server as the root user in order to install cPanel & WHM.


2. Licensing Requirements


Each server requires its own cPanel license, and licenses cannot be shared or transferred between servers.


The documentation states: “You cannot transfer a single cPanel & WHM license across multiple servers.


Additionally, cPanel cannot run on IPv6-only servers; at least one IPv4 address is required.


3. Networking Requirements


3.1 Hostname Requirements


  • Must be a registered, fully-qualified domain name (FQDN).
  • Must not exceed 60 characters.
  • Must resolve to a valid IP address.

The documentation states: “Your hostname must… resolve to a valid IPv4 or IPv6 address.


3.2 IP Address Requirements


  • Must be a valid IP address.
  • On NAT networks, 1:1 NAT and NAT loopback must be configured.

3.3 Network Interface


The server must use a static IP address.


The documentation states: “You cannot use an IP address that a DHCP service dynamically assigns to your server.


4. Firewall and Network Manager


CloudLinux


  • CloudLinux 7 requires disabling Network Manager.
  • CloudLinux 8, 9, and 10 do not require disabling it.

Rocky Linux


  • Rocky 8 automatically disables Network Manager during installation.
  • Rocky 9 does not require disabling it.

Ubuntu


UFW must be disabled before installation.


systemctl stop ufw.service

5. Hardware Requirements


  • CloudLinux 7–10: 1.1GHz CPU, minimum 2GB RAM, minimum 20GB disk, 64-bit
  • Rocky Linux 8–9: 1.1GHz CPU, minimum 2GB RAM, minimum 20GB disk, 64-bit
  • Ubuntu 24.04: minimum 1.1GHz CPU, minimum 2GB RAM, minimum 20GB disk, 64-bit

The documentation states: “We strongly recommend that you install at least 3 GB of RAM if you want to install ClamAV.


6. SELinux and AppArmor


  • SELinux must be disabled on CloudLinux and Rocky Linux.
  • SELinux must not be installed on Ubuntu.

The Ubuntu documentation states: “Do not install SELinux on your server. SELinux is not compatible with cPanel & WHM.


AppArmor on Ubuntu is fully compatible.


7. Filesystem and Partitioning


  • Recommended filesystems: XFS or ext4
  • Minimum 20GB for the / partition
  • Minimum 1,000,000 inodes

The documentation states: “The base cPanel & WHM installation requires at least 1,000,000 inodes.


8. Supported Virtualization Environments


  • KVM
  • VMware
  • Xen
  • VirtualBox
  • QEMU

CloudLinux and Rocky Linux have limitations with OpenVZ and Virtuozzo.


9. Perl Installation


Perl must be installed before running the cPanel installer.


The documentation states: “Perl must exist on your server before the installation script…


10. cPanel & WHM Installation Command


The installation command is identical across all three operating systems:


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

The documentation states: “This command… downloads the latest version of cPanel & WHM, and runs the installation script.


11. Important Pre‑Installation Notes


  • Installation must occur on a freshly installed OS.
  • cPanel does not provide an uninstaller.
  • A public, static IP is required.
  • Installing additional services beforehand may break the installation.

The documentation states: “We do not provide an uninstaller. If you wish to remove our software, you must reformat the server.


12. Conclusion


Official cPanel documentation makes it clear that a successful installation of cPanel & WHM depends on meeting strict requirements related to networking, hardware, filesystems, SELinux, and virtualization. While CloudLinux, Rocky Linux, and Ubuntu differ in certain details, the core principles remain the same:


  • Fresh operating system
  • Static IP address
  • SELinux disabled
  • Firewall disabled during installation
  • Minimum 2GB RAM and 20GB disk space

Written & researched by Dr. Shahin Siami

Related Articles

How to Restore Your cPanel Account: A Complete Guide for New System Administrators

This guide explains how new system administrators can restore a cPanel account using WHM, transfer accounts and configurations between servers, and enable diagnostic logging for transfer and restore operations. It covers essential concepts such as WHM vs. cPanel, root access, backup handling, SFTP uploads, transfer methods, and advanced debugging tools.

Continue

آموزش کامل انتقال تمام اکانت‌های cPanel از یک سرور به سرور دیگر

این مقاله نحوه انتقال همه اکانت‌های cPanel، تنظیمات سرویس‌ها، گواهی‌های SSL و IP اصلی سرور را از یک سرور قدیمی (Source) به یک سرور جدید (Target) توضیح می‌دهد. شامل نصب سرور جدید، انتقال تنظیمات، انتقال اکانت‌ها، تغییر IP، تنظیم DNS و نصب مجدد SSL است.

Continue

How to Migrate a WordPress® Installation to a cPanel & WHM Server

This guide explains how to migrate a WordPress installation from a macOS-hosted environment to a cPanel & WHM server. It covers exporting the database, uploading WordPress files, creating and importing a MySQL database, updating URLs, configuring wp-config.php, fixing broken links, and finalizing the migration.

Continue

How to Manually Transfer an Account Between Servers in cPanel & WHM

This article explains how to manually transfer a cPanel account between servers when the account is too large for WHM’s automated transfer tools. It covers creating temporary directories, compressing public_html and log files, securely transferring data with SCP, and restoring the files on the destination server.

Continue

How to Manually Migrate Horde Calendars and Contacts to Roundcube in cPanel & WHM

This article explains how to manually migrate Horde calendars and contacts to Roundcube in cPanel & WHM version 108 through 118. It covers exporting Horde data, placing it in the correct directories, and importing it into Roundcube using built‑in plugins or manual import tools.

Continue

How to Manually Migrate Accounts to cPanel & WHM from Unsupported Control Panels

This article explains how experienced system administrators can manually migrate accounts from unsupported third‑party control panels to cPanel & WHM. It covers pre‑migration steps, installation requirements, file and directory transfers, database restoration, SSL migration, and post‑migration tasks.

Continue