Get 50% Discount Offer 7 Days


Contact Info

Chicago 12, Melborne City, USA

+88 01682648101

[email protected]

Tutorial Install DirectAdmin on Rocky Linux

DirectAdmin helps you manage your web server and website easily. Also, this control panel manages files and provides web server hosting, DNS, backup, and a database. Although DirectAdmin does not include many features of Cpanel, it is still cheaper. After reading this article, you will learn how to install DirectAdmin on Rocky Linux step by step.

What Is DirectAdmin?

As we explained before, DirectAdmin is a control panel for hosting websites and allows you to manage all aspects of your site. The technology which is used on this control panel is based on the solid LAMP stack. DirectAdmin is available to install and use on almost all popular Linux operating systems like FreeBSD.


– Having root access

– A Linux VPS Server with the Rocky Linux operating system

– Minimum of 2 GB free space

– Minimum of 4 GB RAM 

– 500 GHz CPU 

Installing DirectAdmin on Rocky Linux

Here, are step-by-step instructions to install DirectAdmin. So follow this guide carefully to have this useful tool on your system.

In DirectAdmin Installation, first of all, you must obtain the IP license of the server you intend to install. In this regard, you can go to the DirectAdmin website and create an account. Here, you will get a username and password. Now, create a trial license from the created user account and add the IP address of the server where you want this control panel to be installed.  

Use the command below to find the server IP:

ip a

After creating the license, you should return to your Rocky Linux server and run the system update using the following command. This way you can be sure, all the system default packages are up to date. Also, the repo is flushed:

dnf update

Now, to install DirectAdmin you should log in as root user and run the following script. So, there is no need to go through many commands to do this task cause everything is preconfigured in this script:

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

When you finished the installation part successfully, it’s time to setup by entering the admin username and password along with the login URL, which is your server IP and 2222 port:

install directadmin on rocky linux

In case, you don’t have your password or forget it, then there is a command which will help you to recover it.

So login to the server as root user and run one of the commands below:

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


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

How to use DirectAdmin

You can use any system browser to access your server IP address along with the 2222 port:


Tip: Open the 2222 port in the system or cloud firewall, if you can’t access the web interface:

start direct admin

As the final step, you can see the interface to create user, manager domains, reseller, and all other settings:

direct admin dashboard


In this article, you learned how to install DirectAdmin on Rocky Linux. Now, you are familiar with this useful control panel and you can manage your website easily. We hope you enjoy it. For any question or idea just leave a comment.


How we can Uninstall DirectAdmin?

It is not possible to uninstall DirectAdmin completely. So you have to reinstall your server if you need another web control hosting panel.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Share this Post

Leave a Reply

Your email address will not be published. Required fields are marked *