To install DirectAdmin, sign in as root to a fresh Linux server and run DirectAdmin's setup script with your license key. Then sign in on port 2222.
DirectAdmin is a commercial hosting control panel. You can use it to host your own websites or to sell shared and reseller hosting. It needs a DirectAdmin license key, which you get from your account on the DirectAdmin website.
Before you start
- A VPS or dedicated server with a fresh install of a supported Linux system: AlmaLinux, Rocky Linux, Red Hat Enterprise Linux, Debian or Ubuntu LTS. CentOS 7 is end of life. Check the supported versions and the memory requirements on the DirectAdmin website before you choose.
- A DirectAdmin license that is both active and verified in your DirectAdmin client account.
- A hostname that is a full domain name, such as
server.example.com, pointing to the server's IP address. - The server's IP address and root password. Find them in your server's welcome email or under Hosting & servers » My services in the ASRHost client area.
Install DirectAdmin
- Connect to the server over SSH as
root:
If you sign in as another user, runssh [email protected]sudo -sfirst to get a root shell. Running the installer withsudoin front does not work. - Run the installer, with your license key in place of
YOUR_LICENSE_KEY:sh <(curl -fsSL https://download.directadmin.com/setup.sh) 'YOUR_LICENSE_KEY' - Wait for the installation to finish. It installs the web server, PHP, mail and database software, so it can take a while. Keep the SSH window open.
- At the end, the installer shows the admin username, the admin password and a login link. Copy them somewhere safe.
If you lose these details, they are saved on the server in /usr/local/directadmin/conf/setup.txt.
You can also run the command without a license key. The installer then prints an address you open in your browser to enter the key and finish the setup there.
Sign in to DirectAdmin
- Open the login link from the installer, or
http://192.0.2.10:2222with your server's IP. - Enter the admin username and password.
- Change the admin password to one only you know.
Common problems
Why does the installer reject my license?
The license must be active and verified in your DirectAdmin client account. Check it there, then run the installer again.
Why can't I open port 2222?
A firewall is blocking the port. Allow TCP port 2222 in the server's firewall and in any network firewall in front of the server.
Official documentation
For all installer options, see the DirectAdmin installation guide.
