On this pageWhat you need before running setup.sh
DirectAdmin is a web hosting control panel: one admin login creates hosting accounts, and each account gets its own panel for domains, mailboxes, databases, DNS and SSL certificates. It is lighter than most commercial panels, runs on Debian and Ubuntu as well as the RHEL family, and supports 64-bit ARM. It is also commercial. The installer downloads freely, but DirectAdmin only runs with a license key bought from DirectAdmin. This guide walks through the checks, the install and the first settings worth changing.
What you need before running setup.sh
A license key
DirectAdmin currently sells three licenses: Personal PLUS, Lite and Standard. Every feature is included in all three (the old Pro Pack add-on was folded in for licenses sold from August 2023), and the difference is in limits: Personal and Lite licenses cap the number of accounts and the number of domains, while Standard does not. Before you install, open your license in the DirectAdmin client area and check that it shows Active and Verified. If it does not, the order is still processing: wait for it before you install.
A key is claimed by one server at a time. Start DirectAdmin with the same key on a second machine and the first one reports a "lost license session".
A clean, supported operating system
DirectAdmin wants a fresh OS with no web, database, FTP or mail services installed by hand, and no other control panel. It does not convert existing sites, so never install it on a production server. Supported systems in November 2026:
| Operating system | DirectAdmin support ends |
|---|---|
| AlmaLinux, Rocky Linux or RHEL 8 | August 2029 |
| AlmaLinux, Rocky Linux or RHEL 9 | August 2032 |
| AlmaLinux, Rocky Linux or RHEL 10 | August 2035 |
| Debian 12 | September 2028 |
| Debian 13 | September 2030 |
| Ubuntu 22.04 LTS | July 2027 |
| Ubuntu 24.04 LTS | July 2029 |
| Ubuntu 26.04 LTS | July 2031 |
Debian 11 drops off the list in November 2026, so do not start a new server on it. DirectAdmin adds a few months to each OS vendor's end-of-life date, and once a system passes it, panel updates stop. For a new build, Debian 13, Ubuntu 26.04 or AlmaLinux 10 give the longest window.
Memory, swap and disk
The documented minimum is 4 GB of RAM plus at least 4 GB of swap, and 2 GB of free disk after the OS install, not counting website data. Mail filtering and PHP workers are what actually eat memory, so size up if you plan to host many mailboxes. To run it on CloudSat, deploy a clean Linux VPS with 4 GB or more, such as the 2 vCPU Cloud VPS at $11.58/mo, and bring your own key (DirectAdmin hosting has the details).
Network and quotas
You need root access, working SSH and at least one static public IPv4 address (two if you want to run your own pair of nameservers on separate IPs). The kernel and filesystem must support disk quotas, which is how DirectAdmin enforces account limits. Some minimal cloud kernels ship without the quota modules. On Debian or Ubuntu, if modprobe quota_v2 reports that the module is not found, install your distribution's standard kernel (on Ubuntu, the matching linux-modules-extra package also works) and reboot before you continue.
Prepare the server
Log in as root. DirectAdmin's installer does not work through plain sudo; if you are logged in as another user, run sudo -s first.
Set a fully qualified hostname that resolves to the server, update the system, and add swap if the image has none:
hostnamectl set-hostname server1.example.com
apt update && apt -y full-upgrade # Debian, Ubuntu
dnf -y upgrade # AlmaLinux, Rocky Linux
swapon --show
dd if=/dev/zero of=/swapfile bs=1M count=4096
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo '/swapfile none swap sw 0 0' >> /etc/fstab
reboot
dd is slower than fallocate but produces a swap file that every filesystem accepts. Skip the swap lines if swapon --show already lists 4 GB or more.
Run the installer
There are two ways to install. The web installer prepares the system, then prints a URL (the server's IP, a temporary port and a key) where you finish setup in a browser and paste your license key:
sh <(curl -fsSL https://download.directadmin.com/setup.sh)
The command-line installer takes the key as an argument and uses default options for everything else:
sh <(curl -fsSL https://download.directadmin.com/setup.sh) 'YOUR-LICENSE-KEY'
The defaults suit most servers. If you need a different web server, PHP version or database, DirectAdmin's documentation lists predefined options you can set before running the script. The install compiles and configures a full hosting stack, so run it inside tmux or screen in case your SSH session drops.
First login
At the end, the installer prints the admin username, password and a direct login link. The same details are saved in /usr/local/directadmin/conf/setup.txt. The panel listens on port 2222:
http://203.0.113.10:2222
Lost the link or the password? This prints a one-time login URL for the main admin account:
da login-url
Once inside, do these four things before creating accounts:
- Change the admin password from the one in
setup.txt, then delete or lock down that file. - Turn on two-step authentication for the admin account.
- Issue a trusted certificate for the server hostname so logins stop showing browser warnings.
- Restrict port 2222 to your own IP addresses in the firewall if you always connect from fixed locations.
Keep the stack updated with CustomBuild
DirectAdmin builds and updates its services (web server, PHP, database, mail and FTP) through CustomBuild, driven by the da build command. Check what is outdated, then update:
da build versions
da build update_versions
da build all rebuilds every component from scratch. DirectAdmin advises against it for routine use, so keep it for deliberate changes. Before a major version jump, such as a new database release, take a snapshot so you can roll back in minutes (see take a snapshot).
Manage the license key
From DirectAdmin 1.63.8, the key lives in a plain-text file. To replace it, for example after upgrading your license tier:
echo 'YOUR-NEW-LICENSE-KEY' > /usr/local/directadmin/conf/license.key
chmod 0600 /usr/local/directadmin/conf/license.key
systemctl restart directadmin
Keep the file readable by root only: anyone who copies the key can claim your license from another machine and knock your panel offline. If DirectAdmin reports an invalid key, /usr/local/directadmin/scripts/getLicense.sh 'YOUR-LICENSE-KEY' fetches it again. A license can also carry IP restrictions; on a dual-stack server, allow both the IPv4 and the IPv6 address.
FAQ
Is there a free edition of DirectAdmin?
No. All current licenses are paid. Personal PLUS is the entry tier, and it limits accounts and domains rather than features. If you only need to manage a server, not host accounts for others, Webmin costs nothing.
Can I install DirectAdmin on a server that already runs websites?
No. It expects a clean OS and does not import services you configured by hand. Build a fresh server, install DirectAdmin, then migrate sites into accounts one by one.
Does DirectAdmin run on ARM servers?
Yes. DirectAdmin supports 64-bit ARM (arm64) servers as well as x86-64 ones, so an ARM VPS is a valid target as long as its OS is on the supported list.
What does "lost license session" mean?
The same key was claimed by another server. Shut DirectAdmin down on the machine that should not have it, then restart the service on your main server to reclaim the license.
Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.




