CategoriesCloudlinux Directadmin

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.

CategoriesCloudlinux Directadmin Linux Server

Converting CentOS server with DirectAdmin

CloudLinux OS Shared is simple to install. Here, you will learn how to convert a DirectAdmin based server from CentOS to CloudLinux OS Shared.

First, you will need a software activation key or an IP-based license. The 30-day trial key can be obtained for free by requesting it from the CLN portal via our website (note that CLN requires registration). If you have a paid license key, it can be found in CLN, or in your welcome email. For more information, refer to our “licensing” article.

To install, open an SSH connection to your server using your preferred SSH console application.

Here is the syntax we are using to execute the conversion process:

$ wget https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy$ sh cldeploy -k <activation_key> # if you have activation keyor $ sh cldeploy -i # if you have IP based license $ reboot

 

CloudLinux OS Shared install script is smart – it detects the environment, type of virtualization, control panel, specific hardware which might require additional drivers installation and more.

Once the installation is completed, the server needs to be rebooted. It is required in order to boot the server with our kernel, which is specifically crafted for the LVE support and limits operation.

To make sure that our server is running the correct kernel, we can access the server via SSH again and execute the “uname -a” command.

CloudLinux kernel contains “lve” in its name – when you see this, you’ll know that the server is running using the correct kernel.

Now let’s check the DirectAdmin interface. CloudLinux LVE Manager plugin has been installed during the conversion process. For more details regarding LVE Manager features and usage, please refer to this video.

You are all set – the CentOS server with DirectAdmin has been successfully converted to CloudLinux OS Shared.