Using AdminLTE as a starting point, I am working on creating a nice-looking Web interface for managing the Pi-hole (not that there is a whole lot you need to do. But you might want to log in and view some stats or update the lists.
I’ve installed the WebUI and definitely created and modified ownership and read/write permissions on /var/log/pihole.log but it remains completely empty and as a consequence I don’t get any statistics reported in the WebUI.
# ls -l /var/log/pihole.log
-rw-r–r– 1 dnsmasq root 0 Nov 15 19:53 /var/log/pihole.log
…and dnsmasq is configured to log there…
# grep log /etc/dnsmasq.conf log-queries log-facility=/var/log/pihole.log
I read that there were some problems with the DietPi image (https://goo.gl/zKKavi) but nothing had been reported for the current WebUI.
Any ideas on what I’ve done wrong or how to troubleshoot?
Thanks in advance
It looks like most of it is right. You can either re-install the Pi-hole completely, or add the interface manually.
Thanks, for taking the time to reply. I installed the WebUI manually in this instance.
I think I’ll just go with a fresh install and take the opportunity to update the OS at the same time.
More importantly thank you for making installation and setup of Pi-Hole painless, really useful and very much appreciated.
You are welcome. It’s always satisfying to get nice feedback. I will continue to work on as long as people enjoy it.
I’ve installed the webui and it’s working.. but it’s not updating from it’s initial read of the log.. so I’m getting just some static numbers..
You probably need to do some chmodding and chowning, which were added in later installs. See this link for more help:
Hi Jacob.. hm.. the chown/chmod of var/log/pihole.log is already set..
Are your DNS queries working?
tail -f /var/log/pihole.log
hm.. I truncated the log file and it reset the admin interface (obviously)… so basically I have to set a cron to truncate every night to keep the interface running?
Depending how recently you installed the Pi-hole, there is already a cron job that does this for you.
Here are some links to websites that we link to since we consider they’re really worth visiting.
Your email address will not be published. Required fields are marked *
Notify me of follow-up comments by email.
Notify me of new posts by email.
This site uses Akismet to reduce spam. Learn how your comment data is processed.
© 2019 Pi-hole®: A black hole for Internet advertisements.