Voxfor - All rights reserved - 2013-2025
We Accepted





Before beginning the installation, ensure you have:
Server running DirectAdmin, it is recommended to set up the following partitions: /boot with 500 MB for boot files, swap with a size equal to twice the RAM but not exceeding 16 GB, /tmp with 1 GB for temporary files, and / (root) with 6 – 10 GB for the operating system. The /var partition should be allocated 8 – 20 GB to handle logs, emails, and databases, while /usr needs 5 – 12+ GB for user-installed software and DirectAdmin data. The remaining disk space, roughly 80%, should be allocated to /home for user data and websites. It’s also advisable to mount /home with the nosuid option in /etc/fstab for enhanced security.
First, ensure your server is up-to-date.
For AlmaLinux and Rocky Linux:
sudo yum update -y
For Ubuntu:
sudo apt update && sudo apt upgrade -y
DirectAdmin requires a fully qualified domain name (FQDN) as the hostname.
sudo hostnamectl set-hostname server.example.com
Replace `server.example.com` with your desired hostname.
Install necessary dependencies for DirectAdmin.
For AlmaLinux and Rocky Linux:
sudo yum install wget perl curl -y
For Ubuntu:
sudo apt install wget perl curl -y
Navigate to the `/usr/local` directory and download the DirectAdmin setup script.
cd /usr/local
Run the setup script to begin the DirectAdmin installation process.
bash <(curl -fsSL https://download.directadmin.com/setup.sh) 'Provided license key here'
If you are using a firewall, ensure the necessary ports for DirectAdmin are open.
For AlmaLinux and Rocky Linux (using firewalld):
sudo firewall-cmd --permanent --add-port=2222/tcp
sudo firewall-cmd --permanent --add-port=80/tcp
sudo firewall-cmd --permanent --add-port=443/tcp
sudo firewall-cmd --reload
For Ubuntu (using ufw):
sudo ufw allow 2222/tcp
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw reload
Once the installation is complete, DirectAdmin should be running. You can access the DirectAdmin control panel via your web browser.
Navigate to `https://your-server-hostname:2222`.
After logging in, you may want to configure additional settings, such as:
This guide provides a step-by-step process to install DirectAdmin on AlmaLinux, Rocky Linux, and Ubuntu. By following these steps, you should have a functional DirectAdmin installation ready to manage your hosting environment.ย
If you encounter any issues voxfor offer management service for directadminย .