Installing Pi-hole on Existing Apache Server

I'm adding this here in case anyone else needs it. But mostly so I can "Google" it the next time I install Pi-hole on Apache.

Installing Pi-hole on an existing and working Apache web server on Raspberry Pi. This assumes you have set up your own static IP and whatnot.

  1. Run the Pi-hole install. When you get to "Do you wish to install the web server" select "Off".
  2. Finish the Pi-hole installation process. Do not panic.
  3. Run "sudo usermod -a -G pihole www-data"
  4. Install "sudo apt install php-sqlite3"
  5. At a minimum, restart Apache "sudo service apache2 restart" or reboot the Pi.
  6. Enjoy.
3 Likes