DirectAdmin is a hosting control panel known for its low resource usage, clean interface and stability. In this guide we explain step by step how to install DirectAdmin with your license key on an AlmaLinux, Rocky Linux or Debian server.
Requirements
- A clean installation of AlmaLinux/Rocky Linux 8-9, Debian or Ubuntu LTS.
- At least 2 GB RAM (4 GB recommended) and 20 GB+ of disk space.
- root access and a static IP address assigned to the server.
- A license key (trial or paid) obtained from the DirectAdmin client area.
Step 1: Prepare the server
# AlmaLinux / Rocky Linux
dnf -y update && dnf -y install wget tar screen
# Debian / Ubuntu
apt update && apt -y upgrade && apt -y install wget tar screenThen set the server name as an FQDN:
hostnamectl set-hostname server.alanadiniz.comStep 2: Run the installation script
Start the installation inside a screen session and replace LISANS_ANAHTARI (license key) with your own key:
screen -S da
bash <(curl -fsSL https://download.directadmin.com/setup.sh) 'LISANS_ANAHTARI'The script automatically compiles and installs Apache/Nginx, PHP, MariaDB, Exim, Dovecot and the other components. Depending on server performance, the process can take 20-45 minutes.
Which web server and PHP versions are installed is determined by DirectAdmin's default choices. You can change these settings after installation with the CustomBuild tool.
Step 3: Log in to the panel
When the installation is complete, the administrator username, password and login address are shown on screen. You can access the panel at:
https://SUNUCU_IP_ADRESI:2222If you have lost your login details, you can generate a one-time login link on the server with this command:
/usr/local/directadmin/directadmin login-urlStep 4: Manage components with CustomBuild
One of DirectAdmin's greatest strengths is the CustomBuild tool. For example, to update all software:
cd /usr/local/directadmin/custombuild
./build update
./build versions
./build update_versionsTo switch the web server to Nginx + Apache (reverse proxy) mode:
./build set webserver nginx_apache
./build nginx_apache
./build rewrite_confsStep 5: Recommended initial settings
- SSL: Let's Encrypt support is included by default; enable SSL for each domain with a single click.
- Brute-force protection: Tighten the settings under Admin Level » Brute Force Monitor.
- Backups: Take regular backups to a remote FTP server with Admin Backup/Transfer.
- Firewall: Configure a server-level firewall; for details see our UFW and Fail2Ban guide.
Conclusion
Thanks to its efficient use of resources, DirectAdmin is an excellent option for small and medium-sized hosting servers. To run your panel fast and without interruption, you can choose our VDS servers located in Turkey.
Frequently Asked Questions
Which port does DirectAdmin use?
By default, DirectAdmin uses port 2222: https://server-ip-address:2222
Does DirectAdmin run on a server with little RAM?
Yes. DirectAdmin is a very lightweight panel; it runs comfortably even on a VDS with 2 GB RAM. For production environments, however, 4 GB is recommended.
