How to Install DirectAdmin on a Linux Server (AlmaLinux / Rocky Linux / RHEL / Debian / Ubuntu)
DirectAdmin is a lightweight, fast, and commercial web hosting control panel used as an alternative to cPanel. It's suitable for both shared hosting and private server management.
Evans
Last Update 2 bulan yang lalu
DirectAdmin officially supports:
Recommended:AlmaLinux 8 / 9
Rocky Linux 8 / 9
RHEL 8 / 9
Debian 11 / 12
Ubuntu 20.04 / 22.04 LTS
❗️CentOS 8 is no longer supported — use AlmaLinux or Rocky Linux instead.
Requirements
Resource | Minimum |
CPU | 1 core (2+ recommended) |
RAM | 1 GB (2 GB+ recommended) |
Disk | 20 GB (more for hosting) |
IP Address | 1 static public IP |
Root Access | Yes (SSH) |
Step 1: Get Your DirectAdmin License
Purchase or activate a license at
🔗 https://www.directadmin.com/Note your Client ID, License ID, and the server's public IP.
Update the system and install dependencies:
Run the following as root:
You’ll be prompted to enter:
Client ID
License ID
Hostname
Desired services (Apache/Nginx, MariaDB/MySQL, etc.)
DirectAdmin will handle the full stack install: web server, PHP, MySQL/MariaDB, FTP, and more.
The installer may take 15–30 minutes. After installation, it will display:
Admin URL: https://your-ip:2222
Admin username and password (or how to retrieve them)
You can access the DirectAdmin panel using:
For firewalld users (RHEL/Alma/Rocky):
Change the admin password:
Secure the panel with a valid SSL certificate (Let's Encrypt available inside the panel).
Configure packages and user plans via the Admin GUI.
Add your domains and DNS records.
In summary
Step | Command |
Prepare Server | dnf/apt update, install wget curl |
Run Installer | bash <(curl -Ss https://www.directadmin.com/setup.sh) |
Access Panel | https://your-ip:2222 |
Open Port | firewall-cmd --add-port=2222/tcp --permanent |