DirectAdmin installation

Blog d'AiroServer

DirectAdmin installation

1: Prerequisites for Installation

  • Clean Operating System: Ensure that your operating system is freshly installed. If there is existing data on the server, the installation will not be successful. Reinstall your OS if necessary.
  • Minimum RAM Requirement: Your server must have at least 2GB of RAM. If the RAM is less than this amount, the installation will fail.
  • SSH Access: You need SSH access to the server. If you have SSH access, proceed with the following steps.

2: Verify DirectAdmin License Validity

  • Purchase License: Visit the DirectAdmin website (or other vendors) to purchase a license.
  • Check Settings: Ensure that the hostname, server IP, and operating system are correctly set on the licensing site.

3: Begin DirectAdmin Installation!

DirectAdmin installation

Log in to the server via SSH with the root username.

Install Required Services

Before starting the installation, install the following services on the mentioned operating systems using these commands:

CentOS 5 and CentOS 6:

yum install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 cyrus-sasl-devel perl-ExtUtils-Embed autoconf automake libtool which patch mailx db4-devel

CentOS 7 :

yum install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 cyrus-sasl-devel perl-ExtUtils-Embed autoconf automake libtool which patch mailx psmisc net-tools systemd-devel libdb-devel

Debian :

pkg_add -r gmake perl

Download and Prepare the Installation Script

  1. Download the Setup File:
    wget https://www.directadmin.com/setup.sh

    Note: If your operating system is FreeBSD, use the fetch command instead of wget.

  2. Change Setup File Permissions:
    chmod 755 setup.sh
  3. Run the Installation Script:
    ./setup.sh auto

Automatic DirectAdmin Installation

The automatic installation process will start! In this type of installation, all default settings are applied, and the CSF firewall software is installed automatically.

For a custom installation, run the following command instead:

./setup.sh

This allows you to configure DirectAdmin specifically as needed.

Important Note: Hostname

The server’s hostname must be a Fully Qualified Domain Name (FQDN). For example, if your domain is Server.ir, use a subdomain like cp.server.ir ou da.server.ir. Using the main domain (Server.ir) as the hostname can cause issues with webmail and FTP.

The installation of DirectAdmin takes approximately 30 to 40 minutes. After the installation is complete, you can log in to DirectAdmin using ServerIP:2222.

Trouver plus d'articles...

Quoi de neuf ?

fr_FRFR