Articlesintermediate

Install CloudLinux 9 on Your Server

Complete guide to installing CloudLinux 9 with LVE and CageFS on your hosting server

DreamHost Team2026-06-202 min readVerified 2026-06-20

CloudLinux 9 Server Setup

CloudLinux 9 is the latest major release of the CloudLinux OS, designed specifically for shared hosting environments. It brings improved security, better resource isolation, and enhanced performance compared to its predecessor.

Why CloudLinux?

CloudLinux is the industry standard for shared hosting providers. It ensures that no single tenant can monopolize server resources, providing a stable experience for all users on the server.

Key benefits include:

  • LVE (Lightweight Virtual Environment) — isolates each customer into their own resource limits
  • CageFS — a virtualized file system that prevents users from seeing each other's files
  • PHP Selector — allows customers to choose their PHP version (5.6 through 8.3)
  • MySQL Governor — limits MySQL resource usage per tenant

Prerequisites

Before you begin, ensure your server meets these requirements:

  • A clean installation of AlmaLinux 9 or Rocky Linux 9
  • Root access via SSH
  • Minimum 2GB RAM (4GB+ recommended for production)
  • A valid CloudLinux license key

Step 1: Connect to Your Server

ssh root@your-server-ip

Update the system packages:

dnf update -y

Step 2: Install CloudLinux

Download and run the CloudLinux installer:

cd /tmp
wget https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
bash cldeploy -k YOUR_LICENSE_KEY

The installation takes 5-10 minutes. Once complete, reboot:

reboot

Step 3: Verify Installation

After reboot, verify CloudLinux is active:

cloudlinux-info --version
lveinfo --version

You should see version information for both CloudLinux and LVE.

Step 4: Configure CageFS

CageFS provides a virtualized file system for each user:

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

Verify CageFS is running:

cagefsctl --list-enabled

Step 5: Enable PHP Selector

PHP Selector allows customers to switch between PHP versions:

/usr/bin/php-selector-install

This installs all supported PHP versions. You can limit which versions are available:

/usr/sbin/alt-php-cli --enable 8.0 8.1 8.2 8.3

Next Steps

After installation, configure resource limits based on your hosting plans. The default limits are conservative — adjust them according to your tiers.

For the next guide in this series, learn how to tune LVE limits for different hosting plans.

cloudlinuxinstallationlvecagefsserver

Frequently Asked Questions

Does CloudLinux work on VPS?

Yes, CloudLinux 9 supports KVM and Proxmox VPS environments.

What are the minimum requirements for CloudLinux 9?

A server with at least 2GB RAM, 20GB disk, and a supported OS (AlmaLinux 8/9, Rocky Linux 8/9, or CentOS 7).

Can I upgrade from CloudLinux 8 to 9?

Yes, CloudLinux provides an in-place upgrade path using the `cloudlinux-upgrade` script.