Skip to main content
Version: Current

Install DirectAdmin On CentOS & Ubuntu

Getting Started

Get started by Updating Server.

yum update -y 

Install Screen command

DirectAdmin installation can take 30/45min to avoid getting locked out before it finished we will use screen cli.

With the Linux screen command, you can push running terminal applications to the background and pull them forward when you want to see them.

yum install screen -y

1- Common pre-install

yum install wget tar 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 cronie bzip2 cyrus-sasl-devel perl-ExtUtils-Embed \
autoconf automake libtool which patch mailx bzip2-devel lsof glibc-headers kernel-devel expat-devel \
psmisc net-tools systemd-devel libdb-devel perl-DBI perl-Perl4-CoreLibs perl-libwww-perl xfsprogs rsyslog logrotate crontabs file kernel-headers

2- Install DirectAdmin

wget -O setup.sh https://www.directadmin.com/setup.sh && chmod 755 setup.sh && ./setup.sh auto

To Keep tabs on installation Run:

tail -f /usr/local/directadmin/custombuild/install.txt

3- Opcache installation

cd /usr/local/directadmin/custombuild
./build set opcache yes
./build opcache

4- MariaDB 10.5 installation

cd /usr/local/directadmin/custombuild
./build set mariadb 10.5
./build set mysql_inst mariadb
./build set mysql_backup yes
./build update
./build mariadb

5- Install Nginx or Litespeed (Paid)

- Install nginx

./build set webserver nginx
./build set php1_mode php-fpm
./build update
./build all d
./build rewrite_confs

- Install litespeed

cd /usr/local/directadmin/custombuild
./build update
./build set webserver litespeed
./build set php1_mode lsphp
./build set php2_mode lsphp
./build set php3_mode lsphp
./build set php4_mode lsphp
./build litespeed
You may get an error when you try building litespeed :

litespeed webserver configuration option is not compatible with lsphp or php-fastcgi PHP mode with mod_ruid2 enabled.

Run :
./build set mod_ruid2 no

6- Install litespeed Plugin

Upload DirectAdmin LiteSpeed Plugin File.