How to install DirectAdmin

install directadmin
5/5 - (5 votes)

Continuing our series on control panel installations, this post covers how to install DirectAdmin. Like cPanel, DirectAdmin runs only on Linux, and you need a valid license to use it.

You need to purchase a DirectAdmin license before you install. License activation is tied to a public IP address, so you need at least one valid public IP.

Check these prerequisites before you begin installing DirectAdmin:

RAMMIN 2G
HARDMIN 2G FREE
SWAPMIN 2G

The operating systems that support DirectAdmin are listed below:

As with any other control panel, DirectAdmin should be installed on a clean server with no prior configuration.

Now let’s begin the installation.

First, install the required packages for your distribution with the following command.

Red Hat-based:

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 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

Debian

apt-get update
apt-get install gcc g++ make flex bison openssl libssl-dev perl perl-base perl-modules libperl-dev libperl4-corelibs-perl libaio1 libaio-dev \
zlib1g zlib1g-dev libcap-dev cron bzip2 zip automake autoconf libtool cmake pkg-config python libdb-dev libsasl2-dev \
libncurses5-dev libsystemd-dev bind9 dnsutils quota patch libjemalloc-dev logrotate rsyslog libc6-dev libexpat1-dev \
libcrypt-openssl-rsa-perl libnuma-dev libnuma1

Then, with root privileges, run:

bash <(curl -LSs https://download.directadmin.com/setup.sh || curl -LSs https://download-alt.directadmin.com/setup.sh)

Add your license at the end of this line.

Once the installation finishes, open the web console at http://ip:2222. You can find the login details in this file:

/usr/local/directadmin/scripts/setup.txt

Related articles

nslookup practical commands

Anyone who works in IT has run into a failed DNS request at least once, and it can be frustrating. In this…