这是由于安装了nigix出现的问题:
You need to allow the user or group that nginx is running as, to have write permissions on all the .db
files under /etc/pihole
. In my case, that’s the www-data
group, so I do:
sudo chown -R pihole:www-data /etc/pihole
sudo chmod g+w /etc/pihole/*.db
and that fixes it.
All links, in order of mention:
- Pi-hole: https://pi-hole.net
- lighttpd: https://www.lighttpd.net
- proxying it behind nginx: https://docs.pi-hole.net/guides/webserver/nginx/