Get 50% Discount Offer 26 Days

Recommended Services
Supported Scripts
WordPress
Hubspot
Joomla
Drupal
Wix
Shopify
Magento
Typeo3
Comprehensive Guide to Install DirectAdmin on AlmaLinux, Rocky Linux, and UbuntuĀ 

Requirements

Before beginning the installation, ensure you have: 

  • A fresh, minimal install of AlmaLinux, Rocky Linux, or Ubuntu. 
  • A valid DirectAdmin license.
  • Root access to the server. 
  • At least 1GB of RAM.

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. 

Step 1: Update Your Server

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 

Step 2: Set Hostname

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. 

Step 3: Install Required Packages 

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

Step 4: Download DirectAdmin Installation Script 

Navigate to the `/usr/local` directory and download the DirectAdmin setup script. 
cd /usr/local

Step 5: Run DirectAdmin Installation Script 

Run the setup script to begin the DirectAdmin installation process. 

bash <(curl -fsSL https://download.directadmin.com/setup.sh) 'Provided license key here'

Step 6: Configure Firewall (Optional)

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

Step 7: Access DirectAdmin

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`. 

Step 8: Post-Installation Configuration 

After logging in, you may want to configure additional settings, such as: 

  • Setting up your domains and user accounts. 
  • Configuring email and DNS settings. 
  • Installing any additional software or services required for your hosting environment. 

Troubleshooting Tips 

  • icense Issues: Ensure your DirectAdmin license is correct and active. 
  • Firewall/Network Issues: Verify that your server’s firewall and network settings allow access to the necessary ports. 
  • Server Resources: Ensure your server has enough resources (RAM, CPU) to run DirectAdmin efficiently.

Conclusion

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 

Leave a Reply

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

Lifetime Solutions:

VPS SSD

Lifetime Hosting

Lifetime Dedicated Servers