DirectAdmin Control Panel Installation Guideline Linux Server

DirectAdmin is a powerful and user-friendly web hosting control panel. This guide will walk you through the steps to install DirectAdmin on a Linux server.

Prerequisites

  • A fresh installation of a supported Linux distribution (e.g., CentOS, AlmaLinux, Ubuntu, Debian).
  • Root or sudo access to the server.
  • A valid DirectAdmin license. You can purchase one from the DirectAdmin website.
  • A static public IP address for your server.

Step 1: Update Your System

Before starting, ensure your system packages are up-to-date.

# For CentOS/AlmaLinux
sudo yum update -y

# For Ubuntu/Debian
sudo apt update && sudo apt upgrade -y

Step 2: Set the Hostname

Set a fully qualified domain name (FQDN) as the hostname.

# Replace "server.example.com" with your desired hostname
sudo hostnamectl set-hostname server.example.com

Step 3: Configure the Network

Ensure that your server has a static public IP address configured.

Check your current IP address:

ip addr show

Step 4: Disable SELinux (For CentOS/AlmaLinux)

Disable SELinux to prevent conflicts during installation.

# Check SELinux status
sestatus

# Temporarily disable SELinux
sudo setenforce 0

# Permanently disable SELinux
sudo nano /etc/selinux/config

Set SELINUX=disabled and save the file.

Step 5: Install Required Dependencies

Install necessary packages for DirectAdmin to function properly.

# For CentOS/AlmaLinux
sudo yum install wget perl tar zip unzip -y

# For Ubuntu/Debian
sudo apt install wget perl tar zip unzip -y

Step 6: Download the DirectAdmin Installation Script

Download the installation script from the DirectAdmin servers.

wget -O setup.sh https://www.directadmin.com/setup.sh
chmod +x setup.sh

Step 7: Run the Installation Script

Execute the script to start the installation process.

sudo ./setup.sh auto

Alternatively, you can run the interactive installation:

sudo ./setup.sh

Step 8: Enter License and Network Information

During the installation, you will be prompted to enter:

  • Your Client ID and License ID.
  • The hostname (should match what you set earlier).
  • The network device (e.g., eth0).
  • The server IP address.

Step 9: Choose Services and Options

Select the services and software versions you wish to install:

  • Web Server: Apache, Nginx, or OpenLiteSpeed.
  • Database Server: MySQL or MariaDB.
  • PHP versions.
  • Additional options like spam filtering and firewall settings.

Make your selections according to your requirements.

Step 10: Complete the Installation

The installation may take some time to compile and configure all services. Once completed, you will see the admin login details.

*****************************************************
DirectAdmin has been installed successfully.
Admin Username: admin
Admin Password: [YourPassword]
Admin Email: [email protected]
*****************************************************

Step 11: Access the DirectAdmin Control Panel

Open your web browser and navigate to:

http://your_server_ip_address:2222

Or, if SSL is enabled:

https://your_server_ip_address:2222

Log in using the admin credentials provided after installation.

Step 12: Configure Firewall (If Necessary)

Ensure that port 2222 is open in your firewall settings.

# For firewalld (CentOS/AlmaLinux)
sudo firewall-cmd --permanent --add-port=2222/tcp
sudo firewall-cmd --reload

# For UFW (Ubuntu/Debian)
sudo ufw allow 2222/tcp
sudo ufw reload

Conclusion

You have successfully installed DirectAdmin on your Linux server. You can now start managing your hosting environment through the DirectAdmin control panel.

  • DirectAdmin, DirectAdmin Installation
  • 0 Korisnici koji smatraju članak korisnim
Je li Vam ovaj odgovor pomogao?

Vezani članci

hTOP Command Installation On Linux Server

To install and use the htop command on YUM-based Linux distributions like CentOS and AlmaLinux,...

OpenVPN Installation on an Ubuntu-based Linux Server

This guide provides a simple method to install OpenVPN on Ubuntu using an automated script. The...

CyberPanel Installation on Linux Server

CyberPanel is a next-generation web hosting control panel powered by OpenLiteSpeed. It offers a...

cPanel Installation on Linux

cPanel & WHM is a leading web hosting control panel that provides a graphical interface and...

Apache Installation Process in Linux Based Server

This guide provides an easy method to install the Apache HTTP Server on various Linux...