Installing Cloudlinux and Configuring LVEManager and Cagefs

The process below explains how to install CloudLinux on your server

  1. Download the cldeploy script using the command:

    wget http://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
  2. Execute the script using the command:

    sh cldeploy -k

    activation_key is the activation key for your CloudLinux license.

    If you have an IP based license, use the command:

    sh cldeploy -i
  3. Since we have a layer of visualization, we need to edit the kernel parameters of ColudLinux before the server is rebooted. Use the command:

    vi /boot/grub/menu.lst
  4. Here, edit the below line and append acpi=off:

    kernel /boot/vmlinuz-2.6.32-531.17.1.lve1.2.57.el6.x86_64 ro root=UUID=8a5e62f9-f013-46bd-8d81-6f32ee929d93 consoleblank=0 crashkernel=auto SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us nohz=off
  5. Now, the file will appear as indicated below:

    default=0
    timeout=5
    serial –unit=0 –speed=115200
    terminal –timeout=5 serial console
    title CloudLinux Server (2.6.32-531.17.1.lve1.2.57.el6.x86_64)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.32-531.17.1.lve1.2.57.el6.x86_64 ro root=UUID=8a5e62f9-f013-46bd-8d81-6f32ee929d93 consoleblank=0 crashkernel=auto SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8
  6. Reboot the server using the command:

    reboot
  7. The server will now be running CloudLinux with LVE. you can check the same using the command:

    uname -a

    The output would appear as indicated below, depending on the version of the kernel installed

    Linux 2.6.32-531.17.1.lve1.2.57.el6.x86_64 #1 SMP Sat Jun 7 08:40:25 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux

  8. Now, install LVE Manager using the command:

    yum install lve-utils
  9. Ensure that proper lock files are created in /proc, using the command:

    /etc/init.d/lvestats start
  10. Restart the LEV service using the command:

    /etc/init.d/lveclt restart
  11. Recompile easyapache using the command:

    usr/sbin/cpanel-compile-suexec.sh
  12. By default, all the domain names are added in Cagefs. However, after recompiling easyapache, it is recommended to update the users who have been added to Cagefs. Use the command:

    /usr/sbin/cagefsctl –force-update

This completes the configuration of ClouldLinux and Cagefs on your server.