a2ensite (config file) a2dissite (config file)
... and then
systemctl reload apache2
systemctl [start|stop] apache2
systemctl status
systemctl status apache2
See them with
systemctl list-units --state=failed
error messages with
journalctl -u servicename.service
systemctl edit apache2 # will edit the override file with nano
systemctl restart postgrey
2022-02-21 it was reporting "notify-email@apache2.service" was down. clear it with
systemctl reset-failed notify-email@apache2.service
See the journal
journalctl -u mariadb journalctl -u apache2 journalctl -f # follow journalctl -f -u apache2.service # follow, only that service
Zone files are in /var/named/
Conf file is in /etc/bind/named.conf.local
systemctl reload bind9
To clear all iptables entries, first stop fail2ban, then clear, then restart fail2ban
iptables --policy INPUT ACCEPT; iptables --policy OUTPUT ACCEPT; iptables --policy FORWARD ACCEPT;
iptables -Z; # zero counters iptables -F; # flush (delete) rules iptables -X; # delete all extra chains