The cart is empty

DirectAdmin is a popular web hosting control panel that simplifies server management. It supports a wide range of operating systems, including Debian, Ubuntu, and CentOS. In this article, we will explore how to install DirectAdmin on these Linux distributions.

Requirements

Before we begin with the installation, it's important that the server meets the following requirements:

  • Clean installation of the operating system (Debian, Ubuntu, or CentOS)
  • Minimum of 1 GB RAM, although 2 GB or more is recommended
  • Minimum of 2 GB of free disk space, although 10 GB or more is recommended
  • Static IP address

Preparing the System

Before installing DirectAdmin, it's crucial to update the system and install necessary dependencies. This can be done using the following commands:

For Debian/Ubuntu:

sudo apt-get update && sudo apt-get upgrade -y
sudo 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 python3 python3-dev libdb-dev libsasl2-dev libncurses5-dev libexpat1-dev libpcre3-dev libcurl4-openssl-dev libldap2-dev libidn11-dev libpq-dev libmysqlclient-dev libssl-dev libffi-dev

For CentOS:

sudo yum update -y
sudo yum install wget gcc gcc-c++ flex bison make BIND bind-libs bind-utils openssl openssl-devel perl perl-core nmap libaio libcom_err-devel libcurl-devel libss-devel libstdc++-devel libtool libxml2-devel zlib-devel zip unzip perl-libwww-perl xz-devel gd gd-devel bzip2 bzip2-devel curl curl-devel perl-DBI

Installing DirectAdmin

After preparing the system, we can proceed with the installation of DirectAdmin. The installation process is relatively straightforward and involves running an installation script. First, we need to download the installation script:

wget https://www.directadmin.com/setup.sh

Next, we'll set executable permissions to the script:

chmod +x setup.sh

Finally, we'll execute the installation script:

./setup.sh

 

During the installation, you will be prompted to enter a license key and personal information such as the server hostname and email address. Upon completion of the installation, you will be provided with information on how to access DirectAdmin via a web browser.

 

Installing DirectAdmin on Debian, Ubuntu, or CentOS is not difficult. It's important to prepare the system and follow the steps outlined in this guide. After a successful installation, you can start using DirectAdmin to efficiently manage your web server.