πŸ› οΈ Installing CloudLinux OS 9 on cPanel

CloudLinux OS is a performance and security-focused replacement for AlmaLinux on cPanel servers, offering key features like LVE, CageFS, and PHP Selector.


βœ… Option 1: Convert Existing AlmaLinux 9 + cPanel to CloudLinux OS 9

This is the recommended approach for servers already running AlmaLinux 9 with cPanel.

Step 1: Update the System

sudo dnf update -y

Step 2: Install Required Utilities

sudo dnf install wget curl -y

Step 3: Download and Run CloudLinux Conversion Script

wget https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
chmod +x cldeploy
sudo ./cldeploy -k YOUR_ACTIVATION_KEY

πŸ”‘ Replace YOUR_ACTIVATION_KEY with your CloudLinux license key. You can also use a trial key from https://cloudlinux.com/trial.

Step 4: Reboot the Server

sudo reboot

Step 5: Verify CloudLinux is Installed

uname -r
cat /etc/redhat-release

βœ… You should see a kernel version that includes lve and a release line like:

CloudLinux release 9.x

🧰 Post-Conversion: Install CloudLinux Components for cPanel

Once CloudLinux is installed, run the following to integrate it fully with cPanel:

Install LVE Manager and CageFS

yum groupinstall alt-server -y

Register CageFS and Secure System

/usr/sbin/cagefsctl --init
/usr/sbin/cagefsctl --enable-all

Install MySQL Governor (optional, for DB isolation)

yum install governor-mysql -y
/usr/share/lve/dbgovernor/mysqlgovernor.py --install

βœ… Option 2: Fresh Installation with cPanel (New Server)

  1. Download CloudLinux OS 9 ISO from https://repo.cloudlinux.com/cloudlinux/.
  2. Install CloudLinux OS 9 via USB or IPMI.
  3. Once installed, install cPanel:
cd /home
curl -o latest -L https://securedownloads.cpanel.net/latest
sh latest
  1. Install CloudLinux features as shown above (alt-server, CageFS, etc.).

❌ Uninstalling CloudLinux OS 9 (Revert to AlmaLinux 9)

To safely revert a cPanel server from CloudLinux back to AlmaLinux 9:

Step 1: Download and Prepare Uninstall Script

wget https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
chmod +x cldeploy

Step 2: Run the Uninstall Command

sudo ./cldeploy -c

Step 3: Reboot the Server

sudo reboot

Step 4: Confirm Reversion

cat /etc/redhat-release

βœ… You should see:

AlmaLinux release 9.x

⚠️ Note: Some CloudLinux packages may remain. They’re typically compatible and will be updated via AlmaLinux repos.

Scroll to Top