How to Convert Your AlmaLinux installation to CloudLinux
Last updated: June 12th 2025
Introduction
This guide provides a comprehensive, step-by-step process for installing CloudLinux on an existing AlmaLinux 9 server. CloudLinux enhances server security, stability, and resource management, making it a popular choice for shared hosting environments.
Prerequisites
- AlmaLinux 9 is installed and running
- Valid CloudLinux license key (commercial or trial)
- Root or sudo access to the server
Update the AlmaLinux System
Update all packages to the latest versions:
$ sudo dnf update -y
Obtain a CloudLinux License
Purchase a license or obtain a trial activation key from the CloudLinux website. If your license is IP-based (e.g., via cPanel), you do not need an activation key
Download and Run the CloudLinux Installation Script
Download the CloudLinux OS Converter script:
$ wget https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy $ chmod +x cldeploy
Run the installer using your license key (replace `YOUR_LICENSE_KEY`):
$ sudo ./cldeploy -k YOUR_LICENSE_KEY
If you have an IP-based license, use:
$ sudo ./cldeploy -i
The script will:
- Replace AlmaLinux packages with CloudLinux equivalents
- Update the kernel to the CloudLinux kernel
- Configure CloudLinux repositories
Kernel workaround
On AlmaLinux 9, the server will reboot into an older kernel on step 5, causing kmod-lve, along with the CloudLinux services, not to be able to start. Below are the workarounds that you can apply.
Edit the file /etc/default/grub for these steps.
Step 1: Cgroups v2 is not supported by kmod-lve, thus, you will need to add:
systemd.unified_cgroup_hierarchy=0 to the end of the "GRUB_CMDLINE_LINUX_DEFAULT" line.
Step 2: Disable BootLoaderSpec (BLS) by changing the value to false for the server kernel boot parameters to be taken directly from /etc/default/grub at boot time, instead of from an entry file located in /boot/loader/entries/*.conf
Regenerate the grub configuration:
$ sudo su # grub2-mkconfig -o /etc/grub2.cfg && grub2-mkconfig -o /etc/grub2-efi.cfg && grub2-mkconfig -o /boot/grub2/grub.cfg && grub2-mkconfig -o /boot/efi/EFI/almalinux/grub.cfg
Reboot the Server
After the script completes, reboot to load the new CloudLinux kernel:
$ sudo reboot
This ensures all CloudLinux components are active and integrated with AlmaLinux 9.
Verify the Installation
After rebooting, verify that CloudLinux is installed:
Check the OS release:
$ cat /etc/redhat-release
The output should be similar to:
CloudLinux release 9.6 (Georgy Dobrovolsky)
Check for CloudLinux utilities:
$ lvectl --version $ cldetect --help
These commands should work if CloudLinux is installed correctly.
Post-Installation Configuration
After installation, you can:
- Set LVE limits for users
- Enable CageFS for user isolation
- Configure additional CloudLinux modules and extensions as needed
Conclusion
You have successfully converted AlmaLinux 9 to CloudLinux. Enjoy enhanced security, stability, and resource management for your hosting environment.
This article was written by Webdock Support Specialist Taufiq Zainal. Taufiq is passionate about Cloud Hosting and helping Webdock Customers succeed wherever he can.
Related articles
-
Optimizing Network Speed on Your Webdock KVM Server
A mini article with some kernel tweaks to improve network performance on your server
Last updated: September 6th 2024
-
How to configure Crontab on Linux
In this article we detail how Crontab works and all the available options for configuration along with correct syntax and examples.
Last updated: January 4th 2024
-
How to free up disk space on an Ubuntu Nginx or Apache Web Server
This article outlines useful commands you can run on your server in order to free up disk space.
Last updated: October 16th 2023
-
How to monitor webdock server resources using Prometheus, Grafana, Node Exporter and Prometheus Alert Manager
This guide includes the step by step procedure of installing different packages like Prometheus, Grafana, Node exporter and Alert Manager.
Last updated: February 20th 2025
-
How to Disable IPv6 on Your Webdock Server
The article explain how to disable IPv6 on your Webdock server, both temporarily and permanently.
Last updated: August 13th 2024
-
Automating Initial Server Configuration with Ansible
Read our new article: Learn how to automate your cloud server configuration using Ansible.
Last updated: February 12th 2025
-
Top Tools to Install on Your Ubuntu Web Server
A list of important tools that you can install on your production Ubuntu web server
Last updated: July 19th 2023
-
How To Benchmark Your Server with YABS
A guide to do benchmarking of your server's CPU, network performance, and such using YABS.
Last updated: April 1st 2024
-
Systemd Units - A Comprehensive Guide for Linux Admins
A detailed guide on systemd internals for Linux admins
Last updated: August 13th 2024
-
A Quick Guide to Managing Systemd Services
A short guide that helps you manage systemd services
Last updated: August 13th 2024
-
How to Benchmark PHP Performance on Your Webdock Server
Instructions for bechmarking PHP performance on your Webdock server
Last updated: February 12th 2025
-
Why don't I have the memory or disk allowance that I expect?
In this article we show why inside your instance you may see lower than expected RAM or DISK allowance available. It has all to do with units!
Last updated: November 29th 2024
-
Guide to Increasing Open File Limits for Nginx, Apache2, and Linux
Instructions on how to bump up the open file limit for Nginx and Apache webserver.
Last updated: March 3rd 2025
-
An Introduction to Netstat
An introduction article on the most popular networking command in Linux, Netstat
Last updated: March 24th 2025
-
Beyond the Basics: Understanding Socket Statistics
An article on the "ss" command
Last updated: March 26th 2025
-
What Is Netcat and How To Use It
A detailed article on Netcat
Last updated: April 28th 2025