How to Install DirectAdmin on AlmaLinux
You install DirectAdmin on a clean AlmaLinux VPS with the official installation script and your licence key. After about half an hour you log in on port 2222 and manage websites, email, DNS and databases via a clear panel. DirectAdmin is a fast and lightweight control panel and a popular alternative to cPanel. With a Linux VPS from Xitens you choose DirectAdmin directly as your control panel.
What do you need?
- A VPS with a clean installation of AlmaLinux, without another web server or control panel.
- At least 2 GB of RAM. For multiple websites with email, 4 GB or more is recommended.
- A DirectAdmin licence key.
- A hostname, for example server.jedomein.nl, with an A record pointing to your VPS.
Step 1: update the server and set the hostname
dnf update -y
hostnamectl set-hostname server.jedomein.nl Read more about changing the hostname.
Step 2: start the installation
Run the official installation script and replace LICENTIESLEUTEL with your own key:
bash <(curl -fsSL https://download.directadmin.com/setup.sh) 'LICENTIESLEUTEL' The script installs DirectAdmin with a web server, mail server, DNS server and database. This takes about 20 to 40 minutes.
Step 3: open the ports in the firewall
firewall-cmd --permanent --add-port={2222,80,443,21,25,465,587,993,995,53}/tcp
firewall-cmd --permanent --add-port=53/udp
firewall-cmd --reload Do you use CSF? It is prepared for DirectAdmin by default.
Step 4: log in to DirectAdmin
At the end the script shows a link and the administrator login details. Open https://JOUW-IP:2222 and log in with the user admin.
Step 5: the first settings
- Change the administrator password straight away.
- Request an SSL certificate for the hostname, so the panel works via HTTPS.
- Set up the PTR record for good email delivery.
- Create a user and your first domain.
DirectAdmin or cPanel?
DirectAdmin is lighter than cPanel and the licence is more affordable, leaving more of your server power for your websites. Prefer Plesk? Then read How to Install Plesk on Your VPS.
Related articles
Rent a VPS with full root access
Choose an NVMe VPS for maximum storage performance, or a Linux or Windows VPS with high availability. All servers are located in a TIER III data centre in Amsterdam.