The Pihole webserver isn't working properly

So, I'm running on a Pi 4 8 GB and I have a few different applications like the acupsd webserver as well as Netdata that may be causing issues. FYI the Pi acts as router. Netdata runs on port 19999 and the acupsd webserver runs on port on port 80 "192.168.220.1/cgi-bin/apcupsd/multimon.cgi".

pi@raspberrypi4-8gb:~ $ sudo systemd-analyze verify lighttpd.service
/lib/systemd/system/netdata.service:10: PIDFile= references path below legacy directory /var/run/, updating /var/run/netdata/netdata.pid → /run/netdata/netdata.pid; please update the unit file accordingly.
/lib/systemd/system/apcupsd.service:10: PIDFile= references path below legacy directory /var/run/, updating /var/run/apcupsd.pid → /run/apcupsd.pid; please update the unit file accordingly.
pi@raspberrypi4-8gb:~ $ systemctl status --full --no-pager lighttpd.service
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2022-09-19 18:39:34 BST; 24min ago
  Process: 7135 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
  Process: 7145 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf (code=exited, status=255/EXCEPTION)
 Main PID: 7145 (code=exited, status=255/EXCEPTION)

Sep 19 18:39:34 raspberrypi4-8gb systemd[1]: lighttpd.service: Service RestartSec=100ms expired, scheduling restart.
Sep 19 18:39:34 raspberrypi4-8gb systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 5.
Sep 19 18:39:34 raspberrypi4-8gb systemd[1]: Stopped Lighttpd Daemon.
Sep 19 18:39:34 raspberrypi4-8gb systemd[1]: lighttpd.service: Start request repeated too quickly.
Sep 19 18:39:34 raspberrypi4-8gb systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Sep 19 18:39:34 raspberrypi4-8gb systemd[1]: Failed to start Lighttpd Daemon.
curl -I 127.0.0.1
HTTP/1.1 200 OK
Date: Mon, 19 Sep 2022 18:03:26 GMT
Server: Apache/2.4.38 (Raspbian)
Last-Modified: Tue, 01 Jun 2021 20:16:13 GMT
ETag: "29cd-5c3ba0380553a"
Accept-Ranges: bytes
Content-Length: 10701
Vary: Accept-Encoding
Content-Type: text/html

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

Since you already have Apache running on port 80, lighttpd (the shipped web server) won't bind to that port.

You have a few options:

 Remove Apache (may not work in your use case), or

Move Apache to a different port, or

Move lighttpd to an alternate port:

A permanent method of changing the lighttpd port (for lighttpd version 1.4.46 or later):

Check your lighttpd version with this command.

lighttpd -v

If that returns 1.4.46 or above, you can overwrite the port from Pi-hole's lighttpd.conf in your external.conf like this:

server.port := 8888

Note that the := operator isn't supported in older versions of lighttpd .

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