DirectAdmin Installation Guide for Linux Servers

This guide explains the complete process of installing DirectAdmin on a Linux server. It covers system requirements, license validation, running the installation script using both web-based and command-line methods, accessing the control panel, and customizing the installation using predefined configuration files or environment variables.

DirectAdmininstallation guideLinux control panel

~3 min read · Updated Feb 26, 2026

1. Step 1: Check System Requirements


Before installing DirectAdmin, ensure that your server is running a supported Linux distribution and is a completely clean installation. Installing DirectAdmin on servers with pre-installed services like Apache, MySQL, or other control panels is not recommended.


Refer to the System Requirements page for full details.


2. Step 2: Make Sure You Have a Valid License


To install DirectAdmin, you must have an active license. Log into your client account and verify that your license status is Active and Verified. If not, the billing system may not have processed your order yet.


3. Step 3: Run the Install Script (Web-Based Installer)


Log in as root and run the following command:


sh <(curl -fsSL https://download.directadmin.com/setup.sh)

Note: Running this command with sudo from a non-root shell will not work. Use sudo -s to switch to a root shell first.


After the initial setup, the script will display a URL to continue the installation in your browser. Example:


http://192.168.0.1:35222/?key=DAdYbfkB5JIAQmCqYtziZ9vyTaCucbei

4. Step 3: Run the Install Script (Command-Line Installer)


To install DirectAdmin without using the web interface, run:


sh <(curl -fsSL https://download.directadmin.com/setup.sh) '__insert_your_license_key_here__'

The CLI installer uses default configuration settings. You can customize the installation by preparing options.conf or directadmin.conf files beforehand or by exporting environment variables.


5. Accessing the Control Panel


Once installed, DirectAdmin can be accessed at:


http://server.ip.address:2222

The installer will display the administrator username and password at the end of the installation. These credentials are also stored in:


/usr/local/directadmin/conf/setup.txt

6. Predefined Installation Options


You can automate the installation by exporting environment variables. Example for PHP version:


export php1_release=8.0
export php_imap=yes

Then run the installer:


bash setup.sh LICENSE_KEY

Setting a Custom Hostname


export DA_HOSTNAME="server.yourdomain.com"

7. Using Predefined Configuration Files


If options.conf or directadmin.conf already exist, DirectAdmin will use your custom settings instead of defaults. Example:


mkdir -p /usr/local/directadmin/custombuild
wget -O /usr/local/directadmin/custombuild/options.conf "http://yourdomain.com/options.conf"
mkdir -p /usr/local/directadmin/conf/
wget -O /usr/local/directadmin/conf/directadmin.conf "http://yourdomain.com/directadmin.conf"

8. Hardware and Partition Requirements


Minimum recommended hardware:


  • CPU: 500 MHz or higher
  • RAM: at least 4 GB
  • Disk space: at least 2 GB free

Suggested partition layout:


  • /boot: 500 MB
  • swap: 2 × RAM (up to 16 GB)
  • /: remaining disk space

9. Need More Information?


You can contact support at [email protected] or use the contact page. The community forums are also a great place to find answers.


Written & researched by Dr. Shahin Siami

Related Articles

Email Client Configuration & Dovecot Quota/Monitoring Guide for DirectAdmin Users

This guide explains how to configure popular email clients (iPhone Mail, Thunderbird, Gmail POP/SMTP), enable Dovecot LMTP quota warnings, and check the last login time for all email accounts on a DirectAdmin server. It includes step by step instructions, recommended IMAP/SMTP settings, and useful administrative scripts.

Continue

Troubleshooting Dovecot in DirectAdmin – Fixing IMAP Errors, Authentication Issues, and SSL Certificate Checks

Dovecot is the IMAP/POP3 server used by DirectAdmin. Sometimes users encounter errors such as “Connection dropped by IMAP server” or “unknown user” during authentication. This guide explains how to fix corrupted Dovecot indexes, understand authentication logs, hide unnecessary warnings, and manually inspect SSL certificates on IMAP ports 143 and 993.

Continue

DNS Troubleshooting in DirectAdmin – When named is Running but Domains Do Not Resolve

Sometimes the named (BIND) service runs normally, yet DNS queries fail or domains do not resolve from outside. This guide provides a complete troubleshooting workflow for checking named listeners, firewall rules, named.conf configuration, DNS propagation issues, subdomain problems, resolv.conf errors, and common Apache/Nginx misconfigurations.

Continue

Managing DNS Records in DirectAdmin – Complete Practical Guide for Administrators

DirectAdmin provides a powerful DNS management system that allows administrators to control TTL values, create SRV records, enable DNSSEC, manage subdomain delegation, automate TLSA records, and perform mass DNS updates. This guide explains all essential DNS operations in DirectAdmin with real-world examples and best practices.

Continue

DNS and Nameservers in DirectAdmin – Complete, Practical, and Professional Guide

DNS is the backbone of the internet, responsible for translating domain names into IP addresses. DirectAdmin allows you to create private nameservers (ns1/ns2), manage DNS zones, configure DNS clustering, use external DNS, and troubleshoot common issues. This guide provides a complete, clear, and practical explanation of DNS concepts and their implementation in DirectAdmin.

Continue

CustomBuild in DirectAdmin – Complete Guide to Installation, Updates, Configuration, and Advanced Customization

CustomBuild is DirectAdmin’s primary software management system. It installs, updates, configures, and rebuilds essential services such as Apache, Nginx, PHP, MariaDB/MySQL, Exim, Dovecot, FTP servers, and more. Because most components are compiled from source, CustomBuild offers exceptional flexibility, fast access to new versions, and optimized performance.

Continue