How to Install CloudLinux License
CloudLinux provides resource isolation, PHP selector, and CageFS security for shared hosting servers.
Prerequisites
- Root SSH access to your server
- Active CloudLinux license purchase from your dashboard
- A RHEL-based OS (AlmaLinux, Rocky, CentOS)
- Important: A server reboot is required after installation
Step 1: Connect to Your Server
ssh root@your-server-ipStep 2: Install the License
bash <( curl https://api.license.ws/pre.sh ) CloudLinux ; lwsCLNStep 3: Run the CloudLinux Installer
echo "yes" | lwsCLN -installThis converts your OS to CloudLinux. The process takes several minutes.
Step 4: Reboot Your Server
A reboot is required to load the CloudLinux kernel:
rebootStep 5: Verify Installation
After reboot, reconnect and verify:
clnreg_ks --checkThis should show your server as registered with CloudLinux.
Supported Operating Systems
| OS | Supported |
|---|---|
| AlmaLinux 8/9 | Yes |
| Rocky Linux 8/9 | Yes |
| CentOS 7 | Yes (EOL) |
| Ubuntu | No — CloudLinux is RHEL-based only |
Installing mod_lsapi (Optional)
If you use LiteSpeed or want faster PHP processing:
yum install liblsapi liblsapi-devel -y
yum install ea-apache24-mod_lsapi -y --nobest --skip-broken
service httpd restartTroubleshooting
mod_ruid2 conflict during mod_lsapi install
Remove the conflicting module and install the alternative:
yum remove ea-apache24-mod_ruid2 -y
yum install ea-apache24-mod_suexec -yCloudLinux kernel not loading after reboot
Verify that the kernel was installed correctly:
uname -rIf it does not show a CloudLinux kernel, run the installer again:
echo "yes" | lwsCLN -installThen reboot.
CageFS not working for users
Update and remount CageFS:
cagefsctl --force-update
cagefsctl -M