How to install DirectAdmin on AlmaLinux 8 – Cpanel Alternative

DirectAdmin is a paid web hosting control panel just like WHM CPanel. Available to install on almost all popular Linux operating systems including FreeBSD. Here we let you know the process and commands to install DirectAdmin on AlmaLinux 8 server.

Using the DirectAdmin control panel, you can easily manage your own web server and websites. It offers hosting reselling, web server, DNS, backup, database, and file management; log statistics, Full usage statistics, System/Service Information, Pre-configured Reseller configuration plan, IP management
Authorization/update and other functions. Although it is not feature-rich like WHM cPanel but still cheaper than it.

DirectAdmin installation on AlmaLinux 8.x

The below-given steps can be used for Rocky Linux 8, CentOS 8, and RHEL 8.x operating system as well.

1. Directadmin Server Requirements to perform this tutorial:

  • AlmaLinux / RHEL / CentOS 7.x 64-bit, 8.x 64-bit
  • RAM: at least 4GB
  • At least 500 Mhz Intel and AMD  CPU
  • Minimum 2 gigabytes of free space
  • root access



2. Buy or Create Trial License

The first thing in the direction of installing DirectAdmin on AlmaLinux is to first avail the license for the server IP where you are planning to install it. For that go to the official website of this web control panel and register an account. You will get the login username and password of the registered email address. Now, from your DirectAdmin account page create a Trail license and add your Server IP address where you want to install this hosting control panel and for OS choose CentOS 8 64-bit.

Note: To find server IP you can run a command –ip a


3. Run system update

Once you have created the license get back to your AlmaLinux Server and run system update to make sure all the system default packages are up to date and the repo is also flushed and rebuild.

Switch to root user- sudo -i

dnf update


4. Script to Install DirectAdmin on AlmaLinux

We don’t need to go through many commands to set up this web hosting control panel on our Linux server, everything is preconfigured in the form of script, and we just need to run it only. Here is that-

bash <(curl -Ss || wget -O - auto


5. Note down Admin Username and Password

Once the installation is completed, the setup will give you the Admin username and password along with the login URL that is nothing but your-server-IP along with 2222 port.

Note down Direct Admin Username and Password

However, in case you didn’t note down the admin password for DirectAdmin or you forget it, then there is a command to recover the same.

Login to your server with root and run any of the below commands-

grep adminpass /usr/local/directadmin/scripts/setup.txt


cat /usr/local/directadmin/scripts/setup.txt

Recover DirectAdmin Admin Password min


6. Access web interface and log in

Open any system browser that can access your server IP address along with 2222 port – example: http://your-server-ip-address:2222

Note: if you cannot access the web interface then open the 2222 port in the system/cloud firewall

DirectAdmin Web interface


7. Dashboard

Finally, you have the interface to create Users, Resellers, manager Domains, and other settings.

Dashboard DirectAdmin AlmaLinux


8. Uninstall

It is not possible to fully remove the DirectAdmin thus if you are planning to install any other web control hosting panel, then you have to reinstall the server.


Other Articles:



Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.