Skip to content

How to Install DirectAdmin on Linux

Installing a Control Panel2 min read1648 views
On this page
  1. Before you start
  2. Install DirectAdmin
  3. Sign in to DirectAdmin
  4. Common problems
  5. Official documentation
  6. Related guides

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

  1. Connect to the server over SSH as root:
    ssh [email protected]
    If you sign in as another user, run sudo -s first to get a root shell. Running the installer with sudo in front does not work.
  2. 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'
  3. 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.
  4. 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

  1. Open the login link from the installer, or http://192.0.2.10:2222 with your server's IP.
  2. Enter the admin username and password.
  3. 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.

Related guides

Was this article helpful?