Install DirectAdmin On CentOS & Ubuntu
Getting Started
Get started by Updating Server.
- Centos 7/8
- Ubuntu 20.04/22.04 LTS
yum update -y
apt 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.
- Centos 7/8
- Ubuntu 20.04/22.04 LTS
yum install screen -y
apt install screen -y
1- Common pre-install
- Centos 7
- Centos 8
- Ubuntu 20.04/22.04 LTS
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
yum install iptables 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-libwww-perl xfsprogs rsyslog logrotate crontabs file \
kernel-headers hostname
sudo apt install wget gcc g++ make flex bison openssl libssl-dev \
perl perl-base perl-modules libperl-dev libperl4-corelibs-perl \
libwww-perl libaio1 libaio-dev zlib1g zlib1g-dev libcap-dev cron \
bzip2 zip automake autoconf libtool cmake pkg-config python \
libdb-dev libsasl2-dev libncurses5 libncurses5-dev libsystemd-dev \
bind9 dnsutils quota patch logrotate rsyslog libc6-dev libexpat1-dev \
libcrypt-openssl-rsa-perl curl libnuma-dev libnuma1
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.