Last update at :2024-02-10,Edit by888u
How about DirectAdmin? DirectAdmin (DA for short) 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, open FTP, Online file management, database management, etc., 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 system 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 libnuma1Download and run the DirectAdmin installation script:
bash <(curl -Ss https://www.directadmin.com/setup.sh) autoNote: 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:2222Please use SSH to connect to the server for these optional steps.
Enable Let's Encrypt SSL for secure web, mail, and FTP access.
/usr/local/directadmin/scripts/letsencrypt.sh request_single yourserver.example.com 4096Redirect non-SSL requests to the newly created SSL-protected hostname:
/usr/local/directadmin/directadmin set ssl_redirect_host yourserver.example.com service directadmin restartAdd dangerous PHP functions to the disable_functions list:
cd /usr/local/directadmin/custombuild ./build update ./build secure_phpEnforce difficult passwords in the directadmin.conf file:
echo 'enforce_difficult_passwords=1' >> /usr/local/directadmin/conf/directadmin.confRecommended site search: server high defense Hong Kong, domain name quick registration, overseas virtual host space, external network IP, cheap virtual host, cloud server rental, PHP space rental, domain name and space, overseas server, Western Digital Registration, < /p>
发表评论