DirectAdmin setup and installation on CentOS, Rocky, AlmaLinux, RHEL, Debian and Ubuntu

DirectAdmin is a powerful and user-friendly web hosting control panel that allows you to manage your server and websites with ease. This guide will walk you through the steps to install DirectAdmin on your server.

Prerequisites

Before you begin, ensure that you have the following:

  • A clean server or cloud instance at ServerAstra running a compatible Linux distribution (CentOS, Rocky, Alma, RHEL, Debian, or Ubuntu).
  • Root access to the server (provided by our team by default after setup).
  • A valid DirectAdmin license (you can acquire a license through our product addons system during or after the order at ServerAstra).

Step 1: Preparing the Server

  1. Update the system packages:

    For Debian/Ubuntu:

    sudo apt-get update && sudo apt-get upgrade -y

    or as root:

    apt-get update && apt-get upgrade -y

    For CentOS:

    sudo yum update -y

    or as root:

    yum update -y
  2. Install necessary dependencies:

    For Debian/Ubuntu:

    sudo apt-get install wget perl gcc gcc-c++ make -y

    or as root

    apt-get install wget perl gcc gcc-c++ make -y

    For CentOS:

    sudo yum install wget perl gcc gcc-c++ make -y

    or as root:

    yum install wget perl gcc gcc-c++ make -y

Step 2: Download DirectAdmin

Download and run the setup script with your license key (replace $LICENSE_KEY with the actual key):

sudo -s
bash <(curl -fsSL https://download.directadmin.com/setup.sh) '$LICENSE_KEY'

Step 3: Configure DirectAdmin

  1. After install: DirectAdmin will be configured with default settings and provide you with access data in shell. You can access the DirectAdmin control panel by navigating to http://YOUR_IP:2222 in your web browser where YOUR_IP is designated by ServerAstra main IP address for your system.

    E.g. IP is 10.10.10.11 the link will be http://10.10.10.11:2222

  2. Log in with the admin credentials created during the installation process.

  3. Configure your server settings:

    • Set up your DNS settings.
    • Add your domain names.
    • Configure email accounts and databases.
    • Setup auto updates.
    • Check out CustomBuild to change your setup settings.
    • Upload your awesome website using FTP
    • Enjoy ;)

Final words

At the moment the license is provided for free upon request for a limited amount of time.

For more detailed instructions and advanced configurations, refer to the official DirectAdmin documentation.