How to install CloudLinux on DirectAdmin? Print

  • 1

Firstly install DirectAdmin on Centos 7 64bit:

Pre-requirements:

yum install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronies bzip2 cyrus-sasl-devel perl-ExtUtils-Embed autoconf automaker libtool which patch mail bzip2-devel lost psmisc net-tools systemd-devel libdb-devel perl-DBI xfsprogs -y

Install DirectAdmin:
wget http://www.directadmin.com/setup.sh;chmod 755 setup.sh;./setup.sh

Enable the ports in the firewall:
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=2222/tcp --permanent
firewall-cmd --reload

Now we need to install CloudLinux:

Download the installer: wget https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
Activate CloudLinux (We issue licenses via IP): sh cldeploy -i
Then reboot: reboot

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

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!

DirectAdmin ships with MariaDB 5.5 by default you can check your version by doing: mysql -V

yum install governor-mysql -y
/usr/share/lve/dbgovernor/db-select-mysql --mysql-version=mariadb55
/usr/share/lve/dbgovernor/mysqlgovernor.py --install

If you upgraded MariaDB using the CustomBuild 2.0 you will need to change 55 to one of the following:

  • 100 for MariaDB v10.0
  • 101 for MariaDB v10.1

Was this answer helpful?

« Back