How To install CloudLinux on a cPanel / WHM server?

Helposoft Staff

Administrator
Staff member
Points
179
To install CloudLinux on a cPanel server, you’ll need to follow a series of steps to ensure the installation is performed correctly. CloudLinux is an OS designed to enhance the security and stability of web hosting environments. Here’s a step-by-step guide:

1. Preparation

  1. Update Your System: Before starting the installation, ensure your system is up-to-date.

    Code:
    sudo yum update -y

  2. Install Required Packages: Install wget if it’s not already installed.

    Code:
    sudo yum install wget -y

2. Download and Install CloudLinux

Using Activation Key

  1. Download the CloudLinux Installer:

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

  2. Make the Installer Executable:

    Code:
    chmod +x cldeploy

  3. Run the Installer with Your Activation Key:
    Replace ACTIVATION_KEY with your actual CloudLinux activation key.

    Code:
    sudo ./cldeploy -k ACTIVATION_KEY

Using IP-Based Activation

If you have an IP-based license, you can use these commands:

  1. Convert Server into CloudLinux OS Shared Edition:

    Code:
    sudo sh cldeploy -i

  2. Convert Server into CloudLinux OS Admin Edition (if applicable):

    Code:
    sudo sh cldeploy -i --to-admin-edition

3. Reboot the Server

After the installation process is complete, reboot your server to apply the changes.

Code:
sudo reboot

4. Verify Installation

Once the server has rebooted, you can verify that CloudLinux has been installed and is active:

  1. Check the CloudLinux OS Version:

    Code:
    lsb_release -a

  2. Verify CloudLinux Kernel:

    Code:
    uname -r

  3. Ensure the CloudLinux Package is Installed:

    Code:
    rpm -qa | grep cloudlinux

5. Post-Installation Configuration

  1. Update CloudLinux:
    Ensure your CloudLinux installation is up-to-date.
    bash
    Copy code
    sudo yum update -y
  2. Configure CloudLinux:
    You might need to configure specific features based on your hosting environment. Consult the CloudLinux documentation for details on configuration and best practices.
  3. Check cPanel Integration:
    Ensure CloudLinux integrates well with cPanel. Check the CloudLinux and cPanel documentation for any additional integration steps.

Troubleshooting

  • Review Logs: If the installation fails or if you encounter issues, review system logs and installation logs to diagnose the problem.
    bash
    Copy code
    tail -f /var/log/messages
    tail -f /var/log/cldeploy.log
  • Consult CloudLinux Support: If you run into persistent issues, contacting CloudLinux support or checking their support forums may provide additional assistance.
By following these steps, you should be able to successfully install and configure CloudLinux on your cPanel server, enhancing the security and stability of your hosting environment.
 
Last edited:
Top