Skip to main content

[Linux] DirectAdmin installation

This tutorial explains how to manually install DirectAdmin with a license on a Linux server from the command line (SSH).

Updated this week

1. Precautions

Please install DirectADmin only on clean operating system. Do not install Apache, PHP, MySQL, FTP services, Sendmail, or any other software. DirectAdmin will handle all service installation.

DirectAdmin should not be installed on an active production server or a server that already has another control panel.

2. OS requirements

  • RHEL: AlmaLinux 8/9, Rocky Linux 8/9;

  • Debian 11;

  • Debian 12;

  • Ubuntu 22.04;

  • Ubuntu 24.04.

3. Installation

DirectAdmin installation is very simply you simply, here are the basic steps:

1. Connect to your Linux server via SSH as root;

2. Make sure the system packages are up to date:

Ubuntu/Debian:

apt update && apt upgrade -y

RHEL (AlmaLinux/Rocky Linux):

dnf update -y

3. Run the following installation command (change 'your_license_key_here__' to your actual key):

bash <(curl -fsSL https://download.directadmin.com/setup.sh) 'your_license_key_here__'

Important: You must run this as root (not just sudo in front of the command).

4. Access DirectAdmin

Installation command output will provide important details like:

  • Admin username;

  • Admin password;

  • Admin email;

  • Server Hostname.

Make sure to save this data in a safe place. You will need them to access the DirectAdmin panel.

The output will also provide the exact link that you can use to access your DirectAdmin dashboard.

To access DirectAdmin panel you need to enter your server IP with port 2222 in your browser:

https://YOUR.SERVER.IP:2222

Important: If you cannot connect to the DirectAdmin login URL, make sure your firewall is not blocking port 2222. Otherwise, allow this port.

Did this answer your question?