Step One:
Step Two:
Install Softaculous with SSH
wget -N http://files.softaculous.com/install.sh chmod 755 install.sh ./install.sh
Done!
Step One:
Step Two:
Install Softaculous with SSH
wget -N http://files.softaculous.com/install.sh chmod 755 install.sh ./install.sh
Done!
CSF with Brute Force Monitor (BFM) will provide extra benefit of BFM to find some extra cases which triggers the blocks using CSF.
It will use the iptables configuration, and all features of CSF, plus the added benefit of the BFM
wget http://files.directadmin.com/services/all/csf/csf_install.sh /bin/sh ./csf_install.sh
wget https://www.directadmin.com/setup.sh
chmod 755 setup.sh
./setup.sh auto
You may run manual installation script as follows:
./setup.sh
ethernet_dev=eth1
This may be eth0, venet0:0, eth0:1, eth1 etc.
ethernet_dev=eth1
This may be eth0, venet0:0, eth0:1, eth1 etc.
letsencrypt=1
service directadmin restart
cd /usr/local/directadmin/custombuild ./build rewrite_confs
cd /usr/local/directadmin/custombuild ./build update ./build letsencrypt ./build rewrite_confs
cd /usr/local/directadmin/scripts ./letsencrypt.sh request_single server.hostname.com 4096
ssl=1
systemctl restart sshd.service
cd /usr/local/directadmin/custombuild mkdir -p custom/ap2 cp -Rp configure/ap2/conf custom/ap2
Alias /.well-known/acme-challenge /var/www/html/.well-known/acme-challenge Alias /config /var/www/html/redirect.php Alias /roundcube /var/www/html/roundcube Alias /webmail /var/www/html/roundcube Alias /phpMyAdmin /var/www/html/phpMyAdmin Alias /phpmyadmin /var/www/html/phpMyAdmin Alias /pma /var/www/html/phpMyAdmin
You can change the bold word(s) and also delete any line if you don’t need.
sudo systemctl restart httpd.service
cd /usr/local/directadmin/custombuild ./build update ./build rewrite_confs
cd /usr/local/directadmin/custombuild ./build update ./build set php1_release 7.1 ./build set php2_release 5.6 ./build set php3_release 7.0 ./build set php4_release 7.3 ./build set php1_mode php-fpm ./build set php2_mode php-fpm ./build set php3_mode php-fpm ./build set php4_mode php-fpm ./build php n ./build rewrite_confs
User can select PHP version on their “Domain Setup”.
perl -pi -e 's|nofork|foreground|g' /etc/systemd/system/clamd.service systemctl daemon-reload systemctl restart clamd.service
yum install spamassassin chkconfig spamassassin on service spamassassin start
File edited: directadmin.conf, csf.conf, sshd_config
Important command line
DirectAdmin Status
systemctl status directadmin.service
DirectAdmin Restart
systemctl restart directadmin.service
or
service directadmin restart
Restart CSF firewall
csf -r
Restart httpd
sudo systemctl restart httpd.service
or
systemctl restart sshd.service
Supported operating systems of DirectAdmin are as follows:
You must have root access on the server.