CloudLinux OS is designed for shared hosting providers and is based on the CentOS operating system, using the OpenVZ kernel and RPM package manager. It supports most hardware compatible with RHEL/CentOS, except for certain hardware that requires proprietary drivers without open-source alternatives.
Step 1: Uninstall CloudLinux
Download and run the uninstallation script:
wget https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
sh cldeploy -c
Step 2: Verify CloudLinux Uninstallation
Check if CloudLinux is completely removed:
/usr/local/cpanel/bin/cloudlinux_system_install -c
Note: Some CloudLinux packages might still be present but are identical to CentOS packages and don't need removal.
Step 3: Update CentOS Packages
Update your system's RPMs provided by CentOS:
yum upgrade -y
Step 4: Rebuild Apache Server
Rebuild your Apache server using cPanel scripts:
/usr/local/cpanel/scripts/easyapache --build
Step 5: Reinstall the Standard Kernel
Install a non-CloudLinux kernel:
yum --disableexcludes=all install kernel
Step 6: Remove CloudLinux Kernel
Erase the CloudLinux-specific kernel:
rpm -qa | awk '/^kernel.*lve/ {print $1|"xargs yum -y erase"}'
Step 7: Reinstall CentOS-Compatible RPMs
Reinstall RPMs provided by CloudLinux that are also available in CentOS:
rpm -qa --qf "[%{VENDOR} %{NAME}\n]" | awk '/CloudLinux/ {print $2|"xargs yum reinstall -y"}'
Step 8: Downgrade CloudLinux RPMs to CentOS Versions
Downgrade any RPMs provided by CloudLinux to their CentOS equivalents:
rpm -qa --qf "[%{VENDOR} %{NAME}\n]" | awk '/CloudLinux/ {print $2|"xargs yum downgrade -y"}'
Step 9: Remove Remaining CloudLinux RPMs
Erase any leftover CloudLinux RPMs:
rpm -qa --qf "[%{VENDOR} %{NAME}\n]" | awk '/CloudLinux/ {print $2|"xargs yum erase -y"}'
Step 10: Upgrade All CentOS RPMs
Upgrade all CentOS packages to their latest versions:
yum upgrade -y
Step 11: Reboot the Server
Finally, reboot your server to complete the uninstallation process and switch to the new, non-CloudLinux kernel:
reboot