Pi-hole not working anymore after update

Same results, both a 403 - Forbidden error.

What about ls -l /var/www/html/ again ?

What's the output of that ?

This seems off (to my layman eyes) in the debug log:
[127.0.0.1:4711] is in use by pihole-FTL

Does that make sense to you?

I very much appreciate the help btw.

ls -l /var/www/html/ gives:

totaal 16
drwxr-xr-x 7 root root 4096 jun 26 22:37 admin
drwxr-xr-x 13 www-data www-data 4096 nov 2 2018 openrsd
drwxr-xr-x 2 root root 4096 jun 26 22:58 pihole
drwxr-xr-x 11 www-data www-data 4096 nov 2 2018 pivpn-gui

So that seems to look better than before.

Yes that looks right ... It's supposed to do that :slight_smile:

1 Like

What about sudo systemctl status lighttpd ?

What's the output of that ?

● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-06-26 23:13:06 CEST; 23min ago
Process: 581 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 653 (lighttpd)
CGroup: /system.slice/lighttpd.service
└─653 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf

jun 26 23:13:05 RaspSmient systemd[1]: Starting Lighttpd Daemon...
jun 26 23:13:06 RaspSmient systemd[1]: Started Lighttpd Daemon.

The command "sudo service dnsmasq status
" (found in another thread) gives the following:

● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; disabled; vendor preset: enabled)
Active: inactive (dead)

It's nothing like what another user saw, is this relevant?

Nope.

seems you are missing php and a few dependencies.

My guess is that when you uninstalled Pi-hole a while back, you went ahead and removed dependencies one by one when asked during the uninstall process, right ?

Try running this:

sudo apt-get install -y libapache2-mod-php5 php5 php-pear php5-xcache php5-mysql php5-curl php5-gd

You're on to something there... I tried to remove them one by one but after the first one the process halted, so I wasn't even sure that first one was removed. After that I always chose to keep them when I uninstalled, but yeah this must be part of the problem.

I ran the command, it seems to have installed a few things. Do I need to reboot? I still don't have access to the admin site but I am still blocking ads :slight_smile:

No, a sudo systemctl restart lighttpd should do the trick...

I still can't access the admin site, but now the ads are back aswell. If I had any hair, I'd be pulling it out.

After a reboot of the Pi and my router, the ads are being blocked again! Still the 403 error on the admin site though.

ok let's re-install lighttpd and reconfigure Pi-hole.

Issue these commands (sequential).

sudo apt remove lighttpd -y && sudo apt purge lighttpd
sudo rm -rf /var/www/admin
sudo rm -rf /etc/lighttpd
pihole -r

and select reconfigure

I'm back on the admin site! This is brilliant. I do have ads, but they look different than they used to. It's like there is an empty block where there used to be nothing. But it's not an entire ad, it's just either empty or partial information.

Nevermind, it was probably cached stuff. I turned off my wifi and the ads were full, closed the news-app I was using and now the ads are gone again.

You might get ads due to IPV6 as that is preferred over IPV4 when both are active within the network.

Ah okay, that is something to consider then. But it all seems to be working like it should again, thank you so much. You're preventing some sleepless nights over here. I would have never been able to figure this out by myself and would probably format my sd card at some point in the middle of the night to start over.

You're brilliant, thanks again!

2 Likes

You are welcome :wink:

1 Like

2 posts were split to a new topic: Raspbian Buster lighttpd failed to start

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