How to convert AlmaLinux to CloudLinux OS
CloudLinux does not need a reinstall. The cldeploy script converts a running AlmaLinux server in place, control panel and accounts included, and one reboot puts it on the CloudLinux kernel.
Before you start
- A CloudLinux OS license for the server's public IPv4. IP-based licenses do not use an activation key, and IPv6 addresses are not supported for IP activation.
- A full backup or a snapshot of the server. The conversion replaces the kernel and many system packages.
- A maintenance window for one reboot.
- Root SSH access, preferably inside
tmuxso a dropped connection does not stop the script.
1. Download cldeploy
wget https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
2. Run the conversion
For an IP-based license, use -i:
sh cldeploy -i
If you were given an activation key instead, run sh cldeploy -k YOUR_KEY. The script swaps AlmaLinux packages for their CloudLinux versions, installs the CloudLinux kernel and, on cPanel, DirectAdmin and Plesk, installs the panel integration.
3. Reboot into the CloudLinux kernel
reboot
After the reboot, check the running kernel. On CloudLinux the version string contains lve:
uname -r
4. Check that LVE is working
lvectl list
This lists the default limits and any per-user limits. In WHM, DirectAdmin or Plesk you will now find CloudLinux Manager (LVE Manager), where you set default CPU, memory, I/O and process limits for your hosting packages.
5. Set sensible limits
Start with generous limits and tighten them after a week of watching the usage graphs. Limits that are too low cause 508 "Resource Limit Reached" errors on customer sites, which look like outages to your customers.
- Enable CageFS for all users so each account only sees its own files.
- Use PHP Selector if customers need different PHP versions per account.
- Turn on MySQL Governor if a few databases dominate your server load.
If you need to roll back
cldeploy has an uninstall option, sh cldeploy -c, which converts the server back. Restore from your backup if anything else goes wrong.
Pairs well with
Imunify360 for security and KernelCare to patch the kernel without the reboots CloudLinux kernel updates would otherwise need.