Pihole with Weewx - Can't access pihole dashboard website

Please follow the below template, it will help us to help you!

If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx instead of lighttpd, or there is some other aspect of your install that is customised) - please use the Community Help category.

Expected Behaviour:

I was expecting to use pihole and weewx at the same raspberry pi.

Actual Behaviour:

After some months of pihole working flawlessly, I installed weewx in the same raspberry pi -the weather station suite to capture data from sensors. This program includes apache as web server to provide the web control of weewx. From the moment I installed weewx, I cannot access the dashboard of pihole. When I access raspberrypi IP/admin it shows a text-plain website with the titles of the pihole dashboard, but no graphs nor information. It seems that it has overlapped something with lighttpd. I have already tried to change the port of lighttpd (from 80 to 8082) but when I access the raspberry IP:8082, it shows the Apache welcome page.

Debug Token:

https://tricorder.pi-hole.net/iWsfu7Xv/

A permanent way to change the lighttpd port is:

https://discourse.pi-hole.net/t/lighttpd-daemon-wont-start/44985/13

1 Like

Lighttpd is not running and it is still configured to listen on port 80.

*** [ DIAGNOSING ]: Ports in use
*:631 cupsd (IPv4)
*:631 cupsd (IPv6)
*:31416 boinc (IPv4)
*:22 sshd (IPv4)
*:22 sshd (IPv6)
*:10000 miniserv.p (IPv4)
*:8000 python3 (IPv4)
[80] is in use by apache2 (https://docs.pi-hole.net/main/prerequisites/#ports)
[80] is in use by apache2 (https://docs.pi-hole.net/main/prerequisites/#ports)
[80] is in use by apache2 (https://docs.pi-hole.net/main/prerequisites/#ports)
[53] is in use by pihole-FTL
[53] is in use by pihole-FTL
[4711] is in use by pihole-FTL
[4711] is in use by pihole-FTL

*** [ DIAGNOSING ]: contents of /etc/lighttpd

-rw-r--r-- 1 root root 0 Oct 21 21:52 /etc/lighttpd/external.conf

-rw-r--r-- 1 root root 3.4K Oct 21 21:52 /etc/lighttpd/lighttpd.conf
   server.modules = (
       "mod_access",
       "mod_accesslog",
       "mod_auth",
       "mod_expire",
       "mod_redirect",
       "mod_setenv",
       "mod_rewrite"
   )
   server.document-root        = "/var/www/html"
   server.error-handler-404    = "/pihole/index.php"
   server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
   server.errorlog             = "/var/log/lighttpd/error.log"
   server.pid-file             = "/run/lighttpd.pid"
   server.username             = "www-data"
   server.groupname            = "www-data"
   server.port                 = 80
   accesslog.filename          = "/var/log/lighttpd/access.log"

If you are going to make any changes to the web server, do them in external.conf. Otherwise they will be overwritten on Pi-hole updates. For the syntax see
https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_Configuration#BNF-like-notation-of-the-basic-syntax

1 Like

Thank you so much for your answers. I cannot believe it was as easy as changing the port in both external.conf and lighttpd.conf AND once lighttpd is restarted, I should access like:

raspberry IP:port recently change/admin.

Puting the "/admin" changed everything. Thanks!

Only make this change in the external.conf file, not the lighttpd.conf file.

###############################################################################
#     FILE AUTOMATICALLY OVERWRITTEN BY PI-HOLE INSTALL/UPDATE PROCEDURE.     #
# ANY CHANGES MADE TO THIS FILE AFTER INSTALL WILL BE LOST ON THE NEXT UPDATE #
#                                                                             #
#              CHANGES SHOULD BE MADE IN A SEPARATE CONFIG FILE:              #
#                         /etc/lighttpd/external.conf                         #
###############################################################################

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.