How to install Directadmin web control panel on Linux Server? Print

  • 0

DirectAdmin is a GUI based control panel used for Linux OS such as CentOS, Debian and RHEL. It is cheaper than cPanel. It allows you to manage your reseller account, user account, domains, etc., from one interface easily. Your OS requires at least 1 GB of RAM and 2 GB of swap space to run the DirectAdmin control panel. Please refer to the following steps to install DirectAdmin on Linux OS.

Prerequisites:

  • Your system or server must have a clean OS.
  • You must have root access or access to a user with Sudo privileges.

Operating system:

Operating Systems supported by DirectAdmin are listed in the table below.

Operating System Versions
CloudLinux (recommended) 6.x 32/64-bit, 7.x 64-bit, 8.x 64-bit
RedHat Enterprise / CentOS 6.x 32/64-bit, 7.x 64-bit, 8.x 64-bit
Debian 8.x 64-bit, 9.x 64-bit, 10.x 64-bit, 11.x 64-bit ALPHA
Ubuntu 16.04 64-bit, 18.04 64-bit, 20.04 64-bit
FreeBSD 11.x 64-bit, 12.x 64-bit

Note: If you want to install DirectAdmin on Ubuntu OS, you need to run it on Linux 64-bit static. We don't recommend installing DirectAdmin on the Ubuntu Operating system. Since Ubuntu is a Debian based OS, we suggest you to go with Debian.

Hardware requirement:

  • Processor: Minimum of 500 MHz is required.
  • CPU: Minimum 1 Core is required.
  • RAM: Minimum 1 GB RAM is required. 2GB + RAM is recommended.
  • Disk space: At least 2 GB of free space is required after the OS installation and excluding website data.
  • IP address: Minimum one static IPv4 address. If you have two IP addresses, it will be good for DNS Server.

Steps to install and configure DirectAdmin web control panel on Linux VPS and dedicated server.

In order to install and configure the DirectAdmin web control panel on Linux VPS and dedicated server, you need to perform the following mentioned steps.

Step 1. Activate License

In order to install a DirectAdmin web control panel in your system and server, the license is mandatory. The best thing is that they offer a 60 days trial to test the functionality of the control panel. If you are satisfied with it, you can go with the Paid license.

Free trial URL: https://www.directadmin.com/pricing.php

Step 2. Connect to your server and update‌ ‌all‌ ‌the‌ ‌installed ‌packages

You can connect to your server through SSH as the root user or as a user with Sudo privileges. To do this, enter the following command in the terminal.

# ssh [email protected]_address -p Port_number

Replace the IP address and port number with your actual server IP address and SSH port number.

In order to update all the installed packages to the latest available version, you have to type the following commands in the terminal.

# yum -y update

This process may take 10 - 15 minutes to complete.

Step 3. Set Hostname

Please be informed that a hostname should be an FQDN (Fully Qualified Domain Name). It is essential to use a subdomain as the hostname such as demo.yourdomainname.com, not the main domain name such as yourdomainname.com. You can check the hostname of your server by using the following command in the terminal.

# hostname

You can change or set a new hostname by the following command.

# hostnamectl set-hostname [hostname which you want to set]

Please Note: Once you change or set a new hostname for your server, you need to reboot your server for the changes to take effect.

Step 4. Install additional packages

Before starting the DirectAdmin installation setup, you need to install a few packages as per your Operating system. Here, we have mentioned the packages of different OS. You need to check your Operating system and select the packages accordingly.

CentOS 6 or CloudLInux 6
# 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 db4-devel

CentOS 7 or CloudLinux 7:
# 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

AlmaLinux, CentOS or CloudLinux 8
# 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-libwww-perl xfsprogs rsyslog logrotate crontabs file kernel-headers hostname

Debian 8
# apt-get install gcc g++ make flex bison openssl libssl-dev perl perl-base perl-modules libperl-dev libaio1 libaio-dev \ zlib1g zlib1g-dev libcap-dev cron bzip2 automake autoconf libtool cmake pkg-config python libdb-dev libsasl2-dev \ libncurses5-dev libsystemd-dev bind9 dnsutils quota libsystemd-daemon0 patch libjemalloc-dev logrotate rsyslog libc6-dev systemd systemd-sysv

Debian 9
# 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

Debian 10
# apt-get update apt-get install 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

FreeBSD 11
# pkg install gcc gmake perl5 wget bison flex cyrus-sasl cmake python autoconf libtool libarchive iconv bind911 mailx webalizer gettext-runtime psmisc tar

FreeBSD 12
# pkg install gcc gmake perl5 wget bison flex cyrus-sasl cmake python autoconf libtool libarchive iconv bind911 mailx webalizer gettext-runtime udns sudo psmisc tar openssl krb5

Step 5. Download DirectAdmin

In order to download the latest installation script for the DirectAdmin control panel, you need to use the following command on your system or server.

# wget http://www.directadmin.com/setup.sh

Now, you need to assign executable permission to the downloaded script by executing the following command in the terminal.

# chmod 755 setup.sh

If you wish to verify the permission assigned to the downloaded script then you need to run the following command in the terminal.

# ls -la setup.sh

You can see that executable permission is assigned to the setup script. You can verify it by the letter x.

Step 6. Start DirectAdmin Installation

To start the installation of the DirectAdmin on the system or server, you need to point to the installation script and execute it in the directory where you have downloaded it. In order to check if the installation script is present in the directory where you are standing, you need to run the following command in the terminal.

# ls - ls

You can see that the installation script is present in the directory where we are standing. In order to start the installation script run the following command in the terminal.

# ./setup.sh

In the option, would you like to install these required pre-install packages? Type Y key to install the required pre-installation packages. This process may take 5 - 10 minutes to complete.

If you are getting a message on the screen that it is already installed and the latest version, it means that the required packages are already installed.


Please enter your client ID:  You need to enter the client ID which you have received in the email from the DirectAdmin team.

Please enter your License ID: Here, you need to enter the license ID which you have received in the email from the Direct Admin team.

Please enter your hostname: Here, you need to enter the hostname which you have received in the email from the DirectAdmin team.

Is this correct? Type Y if the information which you have mentioned are correct. If you think you have entered the wrong information then type n to re-enter the details.

Is eno 0 your network adaptor with the License IP address? Type Y, if it is your ethernet device name. If it is different then you need to enter n. You will get an option to enter a manual ethernet device.

If you are unsure open a new window and enter the following in terminal to see which ethernet adapter is using your public IP address:

# ifconfig

Is the IP address in your license? Type Y, if you have purchased a DirectAdmin license on the mentioned IP address. If it is different then you need to enter N. You will get an option to enter the IP address on which you have purchased a license. You can also change the IP address if you have a paid license.

DirectAdmin will now be installed on Enterprise 7 point 9. Is this correct? First of all, we would like to inform you that Enterprise and CentOS have the same functionality. If you have a CentOS then you don't need to change it. Type Y if it is correct. If it is incorrect, type N.

You will get a message on the screen that please change the value in your license, or install the correct operating system.

Would you like to backup the current options.conf? Type Yes, if you want to secure the backup of the conf file. Type no if you don't want to secure the backup of the conf file.

Would you like the default settings of apache 2.4 and php 7.4? Type Y to configure the Apache and PHP with the default settings. If you like to set custom settings or have more control over then you need to enter N.


Would you like to search for the fastest download mirror? Type Y to download the installation setup file from the fastest download mirror. The installation process may take 30 - 40 minutes to complete.



Important Note: Once the installation process is completed, the system will share the login details of the DirectAdmin control panel on the screen. So please don’t close the windows screen.

Step 7. DirectAdmin Web Access

Upon successful completion of the installation setup of DirectAdmin, you can access its Web Console on your web browser with the FQDN of your server and port 2222. You can also access it with your server IP address and port number 2222 (HTTP://IP_address:2222). Make sure that the port 80 and 2222 is allowed in your firewall/iptable settings.



That's all.



Was this answer helpful?

« Back
Sign up for a newsletter

chat