Shared hosting only works when one noisy account cannot take the whole server down. That is exactly the problem CloudLinux OS solves: it isolates every hosting account inside its own Lightweight Virtualized Environment (LVE), so a single runaway WordPress site cannot consume all the CPU, memory and disk I/O on the box. In this guide you will learn how to install CloudLinux on existing cPanel and DirectAdmin servers by converting CentOS, AlmaLinux or Rocky Linux in place — no reinstall, no migration, and usually less than an hour of work.
What You Need Before You Install CloudLinux – How to Install CloudLinux OS on
CloudLinux is not installed like a normal package on top of any Linux distribution. The conversion process replaces the kernel and a set of core components, so check the prerequisites first:
- A supported base OS. You can convert CentOS 7 to CloudLinux 7, CentOS 8 / AlmaLinux 8 / Rocky Linux 8 to CloudLinux 8, and AlmaLinux 9 / Rocky Linux 9 to CloudLinux 9. Other distributions (Debian, Ubuntu) cannot be converted.
- Root SSH access and a control panel — cPanel/WHM or DirectAdmin are both fully supported.
- A CloudLinux license. Licenses are sold per server and are activated either with an activation key or by IP. A trial license works for the conversion too.
- A full backup. The conversion is reliable and used on thousands of servers, but it swaps the kernel — take a snapshot or image-level backup before you start, and schedule a maintenance window so you can reboot safely.
- Enough free disk space in
/and/bootfor the new kernel and packages (2–3 GB free is comfortable).
If your server still runs an end-of-life system such as CentOS 7, consider migrating first — our guide on migrating CentOS 7 to AlmaLinux 9 with ELevate walks through that path, after which you can convert AlmaLinux 9 to CloudLinux 9.
Step 1: Download the cldeploy Conversion Script – How to Install CloudLinux OS on
CloudLinux provides a single script, cldeploy, that performs the whole conversion: it registers the server, installs the CloudLinux repositories, replaces the kernel with the LVE kernel and converts the system packages. Log in as root and download it:
wget https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
That is all you need — there is nothing to compile and no installer ISO is required for a conversion. (A bootable ISO also exists if you prefer a completely fresh install on a new server; the conversion route below is what most hosts use on production machines.)

Step 2: Run cldeploy to Install CloudLinux
How you run the script depends on how your license is issued.
With an activation key (the most common case):
sh cldeploy -k <activation_key>
With an IP-based license (the license is bound to the server’s IP address in the CloudLinux Network):
sh cldeploy -i
The script will detect your current OS, install the CloudLinux kernel and the LVE components, and reconfigure the package manager to use CloudLinux repositories. On a typical server this takes 10–30 minutes depending on connection speed and how many packages need to be replaced. Do not interrupt it — let it run to completion inside a screen or tmux session if your SSH connection is unreliable.
Step 3: Reboot and Verify the CloudLinux Kernel
When the script finishes, reboot the server:
reboot
After the server comes back, confirm you are running the CloudLinux kernel. The kernel release string contains lve:
uname -r
cat /etc/redhat-release
You should see a kernel similar to 4.18.0-553.5.1.lve.el8.x86_64 on CloudLinux 8 (or a .lve.el9 kernel on CloudLinux 9), and the release file will identify the system as CloudLinux. You can also verify the license status with:
cldetect --check-license
If the server booted back into the old kernel, check that the CloudLinux kernel is the default GRUB entry — the conversion normally sets this for you, but a customized GRUB configuration can override it.
Step 4: Finish the Setup on cPanel/WHM
On a cPanel server, CloudLinux integrates directly into WHM. After the reboot:
- Log in to WHM and search for CloudLinux Manager (LVE Manager). It appears automatically once the CloudLinux packages are installed.
- Open the manager and confirm your license shows as active and that all user accounts are listed — each account is now wrapped in its own LVE with default limits.
- Enable CageFS for all users (WHM will prompt you, or run
cagefsctl --initfrom the shell — see the CageFS guide linked below). - Enable PHP Selector so customers can pick their PHP version; this installs the
alt-phppackages alongside cPanel’s EasyApache PHP.
Your existing EasyApache profile, Apache/PHP configuration and all accounts stay untouched — CloudLinux layers on top of the stack you already have.
Step 5: Finish the Setup on DirectAdmin
DirectAdmin supports CloudLinux through CustomBuild and its own integration plugin. After converting and rebooting:
- Log in to the DirectAdmin admin level and open the CloudLinux Manager page (it appears in the admin menu once CloudLinux is detected).
- Verify the license and the per-user LVE list look correct.
- Initialize CageFS with
cagefsctl --initand enable it for existing users. - Decide which PHP implementation you will offer — the CloudLinux PHP Selector is the usual choice on DirectAdmin as well, and it coexists with CustomBuild PHP builds.
First Settings to Review After Installation
Out of the box, CloudLinux applies generous default LVE limits. Before you call the job done, review these three things:
- Default LVE limits. Set sane CPU (SPEED), memory (PMEM), I/O and entry-process (EP) defaults in LVE Manager so a single account cannot saturate the machine. Our follow-up guide on CloudLinux LVE limits explains every parameter and how to stop 508 errors.
- CageFS. Enable it for all accounts — it virtualizes each user’s file system view and is a core part of CloudLinux security.
- PHP Selector defaults. Pick the default PHP version and the extensions every account gets; align it with what your customers actually run (mostly WordPress).
If you are new to the underlying stack, our tutorial on installing a LAMP stack is a useful refresher on how Apache, MariaDB and PHP fit together before you start tuning limits.
Troubleshooting Common Conversion Problems
The script stops with a license error. Double-check the activation key, and make sure the server’s main IP matches the IP license if you used cldeploy -i. The server also needs outbound access to the CloudLinux Network for registration.
The server boots the old kernel after reboot. The CloudLinux kernel was installed but is not the GRUB default. Set it as the default entry in the GRUB configuration, or select it once from the boot menu (or via your provider’s console) and reboot again.
Conversion fails on a heavily customized system. Third-party repositories, custom kernels (common on some OpenVZ/Virtuozzo setups) and pinned packages can block the conversion. CloudLinux only supports KVM/Xen and bare-metal servers — it cannot be installed inside an OpenVZ container.
cPanel/DirectAdmin does not show the CloudLinux menu. Log out and back in, and confirm the lvemanager package is installed. On cPanel, a UPCP run (/scripts/upcp) usually registers the plugin correctly.
Conclusion
To install CloudLinux on an existing cPanel or DirectAdmin server, you really only need three commands: download cldeploy, run it with your activation key (or -i for an IP license), and reboot into the LVE kernel. The conversion keeps every account, website and panel setting intact while giving you per-account resource isolation, CageFS security and PHP Selector out of the box. Once the server is converted, spend your time where it matters: tuning the LVE limits so no single customer can ever take the machine down again.