How to Install CloudLinux License

Updated April 5, 20261 views

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
1

Step 1: Connect to Your Server

Terminal
ssh root@your-server-ip
2

Step 2: Install the License

Terminal
bash <( curl https://api.licence.pk/pre.sh ) CloudLinux ; lpkCLN
3

Step 3: Run the CloudLinux Installer

Terminal
echo "yes" | lpkCLN -install

This converts your OS to CloudLinux. The process takes several minutes.

4

Step 4: Reboot Your Server

A reboot is required to load the CloudLinux kernel:

Terminal
reboot
5

Step 5: Verify Installation

After reboot, reconnect and verify:

Terminal
clnreg_ks --check

This should show your server as registered with CloudLinux.

Supported Operating Systems

OSSupported
AlmaLinux 8/9Yes
Rocky Linux 8/9Yes
CentOS 7Yes (EOL)
UbuntuNo — CloudLinux is RHEL-based only

Installing mod_lsapi (Optional)

If you use LiteSpeed or want faster PHP processing:

Terminal
yum install liblsapi liblsapi-devel -y
yum install ea-apache24-mod_lsapi -y --nobest --skip-broken
service httpd restart

Troubleshooting

mod_ruid2 conflict during mod_lsapi install

Remove the conflicting module and install the alternative:

Terminal
yum remove ea-apache24-mod_ruid2 -y
yum install ea-apache24-mod_suexec -y

CloudLinux kernel not loading after reboot

Verify that the kernel was installed correctly:

Terminal
uname -r

If it does not show a CloudLinux kernel, run the installer again:

Terminal
echo "yes" | lpkCLN -install

Then reboot.

CageFS not working for users

Update and remount CageFS:

Terminal
cagefsctl --force-update
cagefsctl -M

Still need help?

Our support team is available to assist with license installation and troubleshooting.

Open Support Ticket

Was this article helpful?

Need help? Chat with us
How to Install CloudLinux License | Knowledge Base | Licence.pk | Licence.pk