Installing the Direct Admin Software
Some things to consider before installing Direct Admin:
Note that before installing DirectAdmin you should have a CLEAN installation of the operating system. It's not recommended to install DirectAdmin on an existing live production server.
This is because DirectAdmin will not covert the existing data upon installation.
- Minimum of one static IPv4 address
- For DNS control you will sometimes need two IP addresses
Prerequisite packages
CentOS 7
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
CentOS 8
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
Debian 10
apt-get update
apt-get 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 libnuma-dev libnuma1
Once you have root access to your VPS or Linux Dedicated Server, Login as root to your server, download the installation script, and run it:
bash <(curl -Ss https://www.directadmin.com/setup.sh) auto
The auto method will be best for most people. It automatically installs everything for you, including the CSF firewall. ( This process can take some time to complete )
It can also be called without the 'auto' option, which requires input but allows for customization.
Important: The hostname should not be the same as the primary domain name. e.g. mydomain.co.za is not a good hostname, where server.mydomain.co.za is.
Having the same host/main domain name will cause e-mail and FTP problems.
Also, please make sure the hostname resolves once you set up DNS.
Accessing the Control Panel
DirectAdmin can be accessed at http://server.ip.address:2222.
Use the Admin username/password from the output information provided by setup.sh
(the same information is specified in the /usr/local/directadmin/scripts/setup.txt
file).
Looking for an affordable VPS, browse our servers here > South African Linux VPS