DirectAdmin is an easy-to-use web hosting manager that helps you manage websites, emails, databases, and more. Installing DirectAdmin on a Linux server requires a few steps. I’ll explain it step by step!
???? Conditions
1. Supported Linux distributions: CentOS, AlmaLinux, Rocky Linux, Debian, Ubuntu.
2. Root access to your server.
3. Clean server installation (no other control panels).
4. A valid DirectAdmin license file.
???? Installation Steps
1. Prepare Server
First, update your server:
sudo yum update -y # Voor CentOS/AlmaLinux/Rocky Linux
sudo apt update -y # Voor Debian/Ubuntu
Install basic packages:
sudo yum install -y wget curl tar # CentOS/AlmaLinux/Rocky Linux
sudo apt install -y wget curl tar # Debian/Ubuntu
2. Download DirectAdmin installation script
Download the official installation script:
cd /root
wget https://www.directadmin.com/setup.sh
chmod 755 setup.sh
3. Start the installation
Start the installation:
./setup.sh auto
The script asks for your DirectAdmin license information. You can enter it manually or have it detected automatically.
4. Configure firewall (optional)
Make sure the necessary ports are open:
sudo firewall-cmd --permanent --add-port=2222/tcp # DirectAdmin paneel
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload
Or for Ubuntu/Debian with UFW:
sudo ufw allow 2222/tcp
sudo ufw allow http
sudo ufw allow https
sudo ufw reload
5. Open DirectAdmin
Once installed, you can reach DirectAdmin via:
http:your-server-ip:2222
Use the credentials provided at the end of the setup.
???? Common Issues
1. Licensing problem
Check if the server’s IP address is correctly registered in your DirectAdmin account.
2. Port 2222 Blocked
Check the firewall settings.
3. Installation Failed
Maintain a clean server without other control panels.
Is it not working? Let me know and we’ll help you out! ????