Expected Behaviour:
lighttpd daemon is active
Actual Behaviour:
lighttpd daemon is failed
Debug Token:
https://tricorder.pi-hole.net/q2sahsgx41
Additional information
I know this isn't a unique question as I've read quite a few topics on this forum while trying to get this figured out for myself. But from what I've read and tried, nothing is helping, I even tried to install that gamin, (I think that's what it's called) since that was a work around for this problem at one point. I'm an absolute amateur when it comes to anything Linux or anything Linux related.
While trying to start or run lighttpd manually I get this for an output
lighttpd -D -f /etc/lighttpd/lighttpd.conf
2019-10-11 10:47:34: (configfile.c.1599) server.upload-dirs doesn't exist: /var/cache/lighttpd/uploads
2019-10-11 10:47:34: (server.c.1209) opening pid-file failed: /var/run/lighttpd.pid Permission denied
2019-10-11 10:47:34: (server.c.428) unlink failed for: /var/run/lighttpd.pid 2 No such file or directory
but if I sudo that very same command command, I get this for an output. At first I was thinking that directory permissions might be the problem, I read somewhere that lighttpd uses www-data as the user, but when I did a chown and changed the /var/cache/lighttpd directory to pi, while I got rid of the server.upload-dirs doesn't exist message by doing so, it was still giving the the error about not finding the lighttpd.pid as not being found, which makes complete sense since that file doesn't exist in my /run/ directory.
sudo lighttpd -D -f /etc/lighttpd/lighttpd.conf
2019-10-11 10:51:46: (network.c.309) can't bind to socket: 0.0.0.0:80 Address already in use
Alright, that seems easy enough, but for whatever reason, I am just drawing a total and complete blank on how to fix this. I've tried to do multiple installs of Pi-hole on my Raspberry Pi 4 running Buster, and I always run into the same problems.
sudo netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:4711 0.0.0.0:* LISTEN 1075/pihole-FTL
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 678/mysqld
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 1069/smbd
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 1075/pihole-FTL
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 587/sshd
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 1069/smbd
tcp6 0 0 ::1:4711 :::* LISTEN 1075/pihole-FTL
tcp6 0 0 :::139 :::* LISTEN 1069/smbd
tcp6 0 0 :::80 :::* LISTEN 649/apache2
tcp6 0 0 :::53 :::* LISTEN 1075/pihole-FTL
tcp6 0 0 :::22 :::* LISTEN 587/sshd
tcp6 0 0 :::445 :::* LISTEN 1069/smbd
udp 0 0 0.0.0.0:53 0.0.0.0:* 1075/pihole-FTL
udp 0 0 0.0.0.0:68 0.0.0.0:* 481/dhcpcd
udp 0 0 192.168.0.255:137 0.0.0.0:* 539/nmbd
udp 0 0 192.168.0.111:137 0.0.0.0:* 539/nmbd
udp 0 0 0.0.0.0:137 0.0.0.0:* 539/nmbd
udp 0 0 192.168.0.255:138 0.0.0.0:* 539/nmbd
udp 0 0 192.168.0.111:138 0.0.0.0:* 539/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:* 539/nmbd
udp 0 0 0.0.0.0:3763 0.0.0.0:* 517/openvpn
udp 0 0 0.0.0.0:5353 0.0.0.0:* 401/avahi-daemon: r
udp 0 0 0.0.0.0:38145 0.0.0.0:* 401/avahi-daemon: r
udp6 0 0 :::59908 :::* 401/avahi-daemon: r
udp6 0 0 :::546 :::* 481/dhcpcd
udp6 0 0 :::53 :::* 1075/pihole-FTL
udp6 0 0 :::5353 :::* 401/avahi-daemon: r
Apache is already taking port 80, so would I just have to change the port Pi-Hole uses? I read on someone's post that they did that, but then they got shamed for whatever reason and how that effects Pi-Holes performance with certain blocking aspects. Or maybe I'll have to try and change Apache's port and setup port forwarding... I'm just at my wits end, as I previously stated, Linux and me aren't friends. Any help would be greatly appreciated