Install PI Hole:


Get pi hole by:
curl -sSL https://install.pi-hole.net | bash
and just follow the installer.


Can restart Restart Pi hole by:
sudo a2ensite pihole
sudo systemctl reload apache2



Fix "Read-Only database" apache2 bug by:
sudo usermod -a -G pihole www-data
sudo chown -R www-data:pihole /etc/pihole
*Then follow the restart pi hole section.

------------------------------------------------
Sources list:
https://discourse.pi-hole.net/t/unknown-0-status/43539
https://docs.pi-hole.net/main/basic-install/
https://discourse.pi-hole.net/t/log-permissions/1911
https://discourse.pi-hole.net/t/installing-pi-hole-on-existing-apache-server/43968
https://discourse.pi-hole.net/t/solved-while-executing-attempt-to-write-a-readonly-database-error/33003
https://github.com/pi-hole/docker-pi-hole/issues/860

Date: February 2023

Back