Ghosted

Complete Guide: AlmaLinux 8 → AlmaLinux 9 → CloudLinux

Professional Step-by-Step Upgrade Path with Best Practices & Safety Checks

📋 Upgrade Path Overview

AlmaLinux 8.x AlmaLinux 9.x CloudLinux 9

Total estimated time: 2-4 hours (depending on server size and packages)

⚠️ Critical Warning: This is a major operating system upgrade path. Always perform a complete backup before proceeding. This process is irreversible without restoration from backup. Consider testing on a non-production server first.

🌟 Why Upgrade to CloudLinux?

  • LVE Technology: Isolate resources per user to prevent single account from overloading server
  • Enhanced Security: CageFS, SecureLinks, and hardened kernel
  • PHP Selector: Multiple PHP versions per user
  • MySQL Governor: Prevent MySQL abuse and overload
  • Perfect for Hosting: Designed specifically for shared hosting environments
  • Better Stability: Improved server stability and uptime

💡 Skip the Hassle – Get CloudLinux Pre-Installed!

Ghosted.com offers dedicated servers and VPS with CloudLinux pre-installed and optimized. Save time and ensure proper configuration from day one.

Already have a server? Our expert support team can handle your CloudLinux conversion and optimization. Contact us for professional assistance!

📋 Pre-Upgrade Checklist & Considerations

⚡ Important Considerations Before Upgrading

  • Compatibility: Ensure all your applications support AlmaLinux 9 and CloudLinux
  • Third-party Repositories: May need to be updated or reconfigured
  • Custom Configurations: Document all custom configs before upgrade
  • PHP Versions: Check if your PHP applications are compatible
  • Database Versions: MySQL/MariaDB may be upgraded
  • Control Panels: Ensure cPanel/WHM/Plesk support the target versions
  • Downtime: Plan for 1-3 hours of downtime minimum
  • CloudLinux License: Have your license key ready before conversion

✅ Pre-Upgrade Checklist (Complete ALL before proceeding):

  • Full server backup completed (including databases)
  • All important data backed up externally
  • Current kernel and packages documented
  • At least 10GB free disk space available
  • Root SSH access confirmed and tested
  • Console/VNC access available (in case of SSH issues)
  • Maintenance window scheduled and users notified
  • CloudLinux license purchased or trial activated
  • All critical services documented
  • Snapshot/backup verified as restorable

🔧 Phase 1: Prepare AlmaLinux 8 for Upgrade

1
Update AlmaLinux 8 to Latest Version

Ensure your AlmaLinux 8 system is fully updated before starting the upgrade process:

dnf update -y
dnf clean all

Reboot if kernel was updated:

reboot
2
Install ELevate Upgrade Tool

AlmaLinux uses the ELevate project for major version upgrades:

dnf install -y yum-utils
dnf install -y https://repo.almalinux.org/elevate/elevate-release-latest-el8.noarch.rpm
dnf install -y leapp-upgrade leapp-data-almalinux
3
Pre-Upgrade Analysis

Run the pre-upgrade check to identify potential issues:

leapp preupgrade
📝 Review the Report: Check /var/log/leapp/leapp-report.txt for any blocking issues. Common issues include:
  • Incompatible kernel modules
  • Deprecated packages
  • Configuration conflicts

View the report:

less /var/log/leapp/leapp-report.txt
4
Fix Common Pre-Upgrade Issues

Common fixes for upgrade blockers:

Remove problematic packages:

dnf remove -y btrfs-progs

Update GRUB configuration:

sed -i ‘s/^GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=”crashkernel=auto”/’ /etc/default/grub

Set upgrade answers (if needed):

leapp answer –section remove_pam_pkcs11_module_check.confirm=True

🚀 Phase 2: Upgrade AlmaLinux 8 to AlmaLinux 9

5
Perform the Upgrade
⚠️ Point of No Return: Once you start this command, the upgrade process begins. Ensure you have completed all preparation steps and have reliable backups.

Start the upgrade process:

leapp upgrade
⏱️ Duration: This process typically takes 30-90 minutes depending on:
  • Number of installed packages
  • Server performance
  • Internet connection speed
The system will reboot automatically during the upgrade.
6
Post-Upgrade Verification

After the system reboots, verify the upgrade was successful:

cat /etc/redhat-release

Should show: AlmaLinux release 9.x

Check system status:

uname -r

Update all packages to latest AlmaLinux 9 versions:

dnf update -y

Clean up old packages:

dnf autoremove -y
7
Verify Services and Applications

Check critical services are running:

systemctl status httpd nginx mysql mariadb sshd

Check if cPanel is functioning (if installed):

/usr/local/cpanel/cpanel -V

Review system logs for errors:

journalctl -xe | grep -i error

☁️ Phase 3: Convert AlmaLinux 9 to CloudLinux 9

8
Prepare for CloudLinux Conversion

Download the CloudLinux conversion script:

wget https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy

Make the script executable:

chmod +x cldeploy
📄 License Required: Ensure you have your CloudLinux license key ready. You can obtain one from CloudLinux.com or through Ghosted.com at discounted rates.
9
Convert to CloudLinux 9

Run the conversion script with your license key:

./cldeploy -k YOUR_CLOUDLINUX_LICENSE_KEY

Or convert without a key (you can register later):

./cldeploy -i
⏱️ Conversion Time: The CloudLinux conversion typically takes 20-40 minutes. The system will reboot automatically when complete.
10
Post-Conversion Setup

After reboot, verify CloudLinux installation:

cat /etc/redhat-release

Should show: CloudLinux release 9.x

Register CloudLinux license (if not done during conversion):

rhnreg_ks –activationkey=YOUR_CLOUDLINUX_LICENSE_KEY –force

Install CloudLinux LVE Manager (for cPanel):

yum install lvemanager -y

Install CageFS (recommended for shared hosting):

yum install cagefs -y /usr/sbin/cagefsctl –init
11
Configure CloudLinux Features

Enable PHP Selector:

yum groupinstall alt-php -y

Install and configure MySQL Governor:

yum install governor-mysql -y /usr/share/lve/dbgovernor/mysqlgovernor.py –install

Set up mod_lsapi for better PHP performance:

yum install liblsapi liblsapi-devel -y /usr/bin/switch_mod_lsapi –setup
12
Final Verification and Optimization

Check CloudLinux kernel is active:

uname -r | grep lve

Verify LVE is working:

lvectl limits

Check CageFS status:

cagefsctl –list-enabled

Run CloudLinux optimization:

cloudlinux-autotracing yum update -y
🎉 Congratulations! Your server has been successfully upgraded from AlmaLinux 8 to AlmaLinux 9 and converted to CloudLinux 9. Your server now benefits from:
  • CloudLinux LVE resource isolation
  • Enhanced security with CageFS
  • PHP Selector for multiple PHP versions
  • MySQL Governor for database protection
  • Improved stability for shared hosting

🛠️ Post-Upgrade Best Practices

📋 Recommended Post-Upgrade Tasks

  • Test all websites and applications thoroughly
  • Monitor server performance for 24-48 hours
  • Review and adjust LVE limits based on your needs
  • Enable CageFS for all users (shared hosting)
  • Configure PHP Selector default versions
  • Set up monitoring for LVE faults
  • Create new backup of the upgraded system
  • Update documentation with new OS version
  • Train staff on CloudLinux features

🚨 Troubleshooting Common Issues

?
Common Issues and Solutions

Repository Conflicts:

If you encounter repository errors:

dnf clean all dnf makecache

Service Failed to Start:

Check service logs:

journalctl -u service_name -n 50

PHP Issues After Upgrade:

Rebuild PHP configuration:

/usr/local/cpanel/scripts/rebuildhttpdconf /scripts/restartsrv_httpd

CloudLinux License Issues:

Re-register the license:

rhnreg_ks –activationkey=YOUR_KEY –force clnreg_ks –force

Need Professional Assistance?

Upgrading operating systems can be complex and risky. Let Ghosted.com’s expert team handle your server upgrade professionally and safely.

Our Services Include:

  • Complete backup and upgrade management
  • CloudLinux conversion and optimization
  • Post-upgrade testing and validation
  • Performance tuning and security hardening
  • 24/7 support during and after upgrade

Save time and ensure a smooth transition – contact our upgrade specialists today!

Share:

More Posts

Best Free ChatGPT Chrome Extensions 2026

Best Free ChatGPT Chrome Extensions (January 2026 Update) Looking for the best free ChatGPT Chrome extensions that actually work in 2026? After testing 50+ extensions,

Change SSH Port from 22 to Custom Port

GHOSTED.COM Change SSH Port from 22 to Custom Port Complete Security Hardening Guide with Firewall Configuration & Recovery Options 📋 Compatibility: This guide is tested

Send Us A Message