Tutorial on installing DirectAdmin panel on Debian 11 Bullseye

888u

Last update at :2024-04-04,Edit by888u

How about DirectAdmin? DirectAdmin is a very powerful virtual host online management system developed abroad. Through this management system, you can easily manage your server, set up EMAIL, set up DNS, activate FTP, online file management, Database management, etc., to facilitate administrators, customers and agents to operate virtual host information online. This document will guide you through the installation process on Debian 11 Bullseye.

Preparation before installation

  • A new server with Debian 11 Bullseye installed
  • Update the server and create a non-root sudo user.

1. Purchase a valid license

A valid software license is required to run DirectAdmin. A 60-day trial license is available as well as multiple paid options for evaluation. Please select the license that suits your requirements from its pricing page.

2. Verify your license

Verify the license by going to the DirectAdmin client area and checking that the license is valid and assigned to your server IP address.

3.Installation

Install the required packages as root:

apt install wget gcc g++ make flex bison openssl libssl-dev \ perl perl-base perl-modules libperl-dev libperl4-corelibs-perl \ libwww-perl libaio1 libaio-dev zlib1g zlib1g-dev libcap-dev cron \ bzip2 zip automake autoconf libtool cmake pkg-config python \ libdb-dev libsasl2-dev libncurses5 libncurses5-dev libsystemd-dev \ bind9 dnsutils quota patch logrotate rsyslog libc6-dev libexpat1-dev \ libcrypt-openssl-rsa-perl curl libnuma-dev libnuma1

Download and run the DirectAdmin installation script:

bash <(curl -Ss https://www.directadmin.com/setup.sh) auto

Note: auto starts from the end of the command for interactive, more customizable installation, please omit it.

4. Post-installation steps

Navigate the new DirectAdmin server on port 2222 to begin configuration. Replace the example IP address with your address.

http://192.0.2.123:2222

For these optional steps please use SSH to connect to the server.

Enable Let's Encrypt SSL for secure web, mail, and FTP access.

/usr/local/directadmin/scripts/letsencrypt.sh request_single yourserver.example.com 4096

Redirect non-SSL requests to the newly created SSL-protected hostname:

/usr/local/directadmin/directadmin set ssl_redirect_host yourserver.example.com service directadmin restart

Add dangerous PHP functions to the disable_functions list:

cd /usr/local/directadmin/custombuild ./build update ./build secure_php

Enforce difficult passwords in the directadmin.conf file:

echo 'enforce_difficult_passwords=1' >> /usr/local/directadmin/conf/directadmin.conf

Recommended site searches: bbs registration, free cn domain name registration, network registration, German server, free mainland China space, Hong Kong server purchase, website space purchase, Ministry of Industry and Information Technology registration query, website IP query, registered domain names,

Tutorial on installing DirectAdmin panel on Debian 11 Bullseye

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码