How to install CloudLinux on DirectAdmin

CloudLinux is now available on DirectAdmin.

Before you begin, however, there are a few things to do first. 

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

In case you're missing some, make sure to enter the pre-requirements provided below into the command terminal to make the process go much smoother.

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


If you haven't installed DirectAdmin yet, run the following command:

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 you can finally install CloudLinux:

Download the installer:

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


Activate your CloudLinux license or search through our store for the one you need (We issue licenses via IP):

sh cldeploy -i


Then reboot:

reboot


Now you need to install CloudLinux CageFS. CageFS offers complete separation from anyone else on your server, keeping you secure and with minimal service interruptions, regardless of the strain on resources.

yum install cagefs -y
/usr/sbin/cagefsctl --init


Next, you need to install their Alt-PHP (the CloudLinux PHP Selector):

yum groupinstall alt-php -y


DirectAdmin comes with MariaDB already installed by default. If you wish to install the MySQL Governor or check your version of MariaDB, enter the following commands.

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


If you still have questions or concerns about the CloudLinux installation, feel free to contact us by opening a support ticket or by using our live chat feature.

  • install, DirectAdmin, installer, CloudLinux
  • 5 Users Found This Useful
Was this answer helpful?

Related Articles

 How to install CloudLinux on cPanel

CloudLinux is available to use with your cPanel account. This guide will show you step by step...

 What is CloudLinux?

In shared web hosting, the most common reason for downtime is a single account compromising...

 Everything you need to know about CloudLinux and server resource limits

What is Cloud Linux In shared web hosting, the most common reason for downtime is a single...

 Official CloudLinux Documentation

CloudLinux OS improves server stability, density, and security of your servers by partitioning...