Introduction

The Pi-hole team just done a wonderful job by releasing the new version of their ad blocking software.

Say Hello to 5.0.0 with a long list of features like:

  • Per-client blocking
  • Deep CNAME inspection
  • And more

Update Pi-hole

The best part ? They made it supper easy, you’ll just have to run:

sudo pihole -up

Second step

If you have followed my guide to install pihole on your machine, you have a slightly different setup than the normal one.

You need to update a couple of files for PHP-FPM.

Group

In case it’s not already done, you want the user www-data to be added to the list of group pihole.

sudo usermod -a -G pihole www-data
sudo systemctl restart pihole-FTL

PHP-FPM config

Then you want to update the php-fpm config to be sure it’s using the right group.

sudo sed -i 's/group = www-data/group = pihole/g' /etc/php/7.*/fpm/pool.d/www.conf
sudo systemctl restart php7.4-fpm php7.2-fpm
# You might see an error telling you one of the service isn't found
# It's normal, you have only one of those 2 services and it's expected.

Conclusion

Here you go, you have successfully updated your installation of Pi-hole to v5.0.0. Enjoy the group feature and other goodies.