How to install CloudLinux on cPanel? Print

  • 0

Firstly install cPanel on Centos 7 64bit:


yum upgrade -y && yum install wget curl nano -y;

Check your hostname (Some vps providers don't apply the full hostname you provided) It should look something like

  1. nano -w /etc/hostname set it to something like:
  2. nano /etc/sysconfig/network set it to something like: HOSTNAME=""
  3. hostname
  4. nano /etc/hosts make sure it has just this for your IP address:

After reboot your server: reboot.

IF that doesn't fix it re-installing the OS should.

Install cPanel:
cd /home && curl -o latest -L && sh latest

Now we need to install CloudLinux:

Download the installer: wget
Activate CloudLinux (We issue licenses via IP): sh cldeploy -i
Then reboot: reboot

If you are using OpenVZ or Virtuozzo you will be limited to just CageFSPHP Selector & Max entry processes because these two virtualization's are in Beta testing at the moment in time (5th September 2016) and only work on CentOS 6. You can find more information here: It is however very complex to do and not for the faint hearted.

Now we need to install CloudLinux CageFS:
yum install cagefs -y
/usr/sbin/cagefsctl --init

Next we need Alt-PHP (PHP Selector):
yum groupinstall alt-php -y && yum update cagefs lvemanager -y

If you wish to install the MySQL Governor:

Please note this tutorial is based on a fresh installation, if you are upgrading a existing installation please backup the databases before continuing!

cPanel ships with MySQL 5.6.x by default we recommend moving to MariaDB so we will mention how to do that. If you wish to do MySQL 5.6 on it's own you can do that by skipping this and jumping to the "Install MySQL Governor on MySQL 5.6" section.

Upgrade MySQL to MariaDB:

Firstly go to Software >> MySQL/MariaDB Upgrade and select "MariaDB 10.0", you can use the GA MariaDB 10.1 but that's up-to you. After you've clicked "next" you will have to check two boxes and then hit "continue". You can then select on "Unattended Upgrade" and just sit and wait for it be completed. Now we need to install the MySQL Governor:

yum install governor-mysql -y
/usr/share/lve/dbgovernor/db-select-mysql --mysql-version=mariadb100 or if you selected the GA MariaDB 10.1 you need to do this one: /usr/share/lve/dbgovernor/db-select-mysql --mysql-version=mariadb101
/usr/share/lve/dbgovernor/ --install

Install MySQL Governor on MySQL 5.6

yum install governor-mysql -y
/usr/share/lve/dbgovernor/ --install

Was this answer helpful?

« Back