Not using lighttpd and upgrading to v5 beta

I am not using lighttpd, and so before I tried the beta, I wanted to check if not running lighttpd will break anything?

This will not be a problem if you do not use the web admin GUI.

I do use the web admin GUI now (extensively). So lighttpd is a requirement for v5?

What web server are you currently using for the web admin page?

I'm using apache and when I installed pihole a while ago, the relevant files for web GUI were put into /var/www/html from where apache picked them up and all has been working fine. I am eager to try v5 but don't want to install lighttpd because apache is running on port 80 and I have a few other services that use it.

I don't know that anybody has tested 5.0 with Apache. I would make a backup of the SD card and try it.

But if v4x automatically "adjusted" for an existing web server, shouldn't v5 also carry that through? Or did I end up making it compatible and just don't remember anymore! :slightly_smiling_face:

Here's a screenshot of /var/www/html

If you skipped webserver install during initial Pi-hole install, you need to apply one or two things manually for v5 support:

usermod -aG pihole www-data
apt install php-intl # respectively the php package version that meeds your PHP version, e.g. php7.3-intl

Thanks for the hint. Are you now successfully using v5 with apache?

apt install apache2 libapache2-mod-php php-intl php-xml php-sqlite3
curl -sSL install.pi-hole.net | bash
# Install web server? => (No)
usermod -aG pihole www-data
http://192.168.178.30/admin # works fine
echo "release/v5.0" | sudo tee /etc/pihole/ftlbranch
pihole checkout core release/v5.0
pihole checkout web release/v5.0
http://192.168.178.30/admin # works still fine including all features

No issue at all with Apache.

To enable some additional configs, matching the Pi-hole lighttpd.conf on DietPi we add the following to sites-available:

Blocks access to dot files and denies access to the blocking page, if the the remote host has no local network IP, hence access from outside the local network. This at least makes sense since no-one will want to make the Pi-hole DNS available to www and we found some report where it leaked the local IP (although I could not replicate).
ErrorDocument 404 /html/pihole/index.php is required (with or without leading /html, depending on webroot location) to enable the blocking page, like it is done with Pi-hole default Lighttpd install.

2 Likes

Worked like a charm! Thanks!