Problems:
- vi /etc/ssh/sshd_config: Permission Denied
- sudo /etc/ssh/sshd_config: command not found
Solution:
use sudo as the text file is indeed not executable.
sudo vi /etc/ssh/sshd_config
Problems:
Solution:
use sudo as the text file is indeed not executable.
sudo vi /etc/ssh/sshd_config
Problems:
Solution:
Run following commands:
./build apache
./build php
./build rewrite_confs
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
A quick way to reset public_html data to 755 for directories and 644 for files:
cd /home/user/domains/domain.com/public_html find . -type d -exec chmod 0755 {} \; find . -type f -exec chmod 0644 {} \;
additionally, if you know php runs as the user and not as “apache”, then you can set php files to 600, for an extra level of security, eg:
find . -type f -name '*.php' -exec chmod 600 {} \;
To enable one-click login for RoundCube
cd /usr/local/directadmin/ ./directadmin set one_click_webmail_login 1 service directadmin restart cd custombuild ./build update ./build dovecot_conf ./build exim_conf ./build roundcube
To enable one-click login for phpMyAdmin
cd /usr/local/directadmin/ ./directadmin set one_click_pma_login 1 service directadmin restart cd custombuild ./build update ./build phpmyadmin
To disable browser access to phpMyAdmin
cd /usr/local/directadmin/custombuild ./build update ./build set phpmyadmin_public no ./build phpmyadmin