Expected Behaviour:
After a fresh install on stretch, the pi.hole/admin website should work.
Actual Behaviour:
A 403 error is occuring. A few hours of debugging lead me to troubleshoot lighttpd and dnsmasq.
lighttpd seems to be missing modules that other users say have fixed their issue such as fastcgi and fastcgi-php.
dnsmasq doesn't seem to be installed in the first place.
Here is my debug token:
Debug Token:
https://tricorder.pi-hole.net/uj3xn11pey
jfb
July 1, 2019, 3:20am
2
dnsmasq is embedded in pihole-FTL and does not run as a separate process (since V4.0 of Pi-Hole).
What are the outputs of these commands from the Pi terminal?
sudo netstat -nltup | grep 'Proto\|:53 \|:67 \|:80 \|:471'
sudo systemctl status --full --no-pager lighttpd
pi@raspberrypi:~ $ sudo netstat -nltup | grep 'Proto\|:53 \|:67 \|:80 \|:471'
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 463/lighttpd
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 650/pihole-FTL
tcp 0 0 127.0.0.1:4711 0.0.0.0:* LISTEN 650/pihole-FTL
tcp6 0 0 :::80 :::* LISTEN 463/lighttpd
tcp6 0 0 :::53 :::* LISTEN 650/pihole-FTL
tcp6 0 0 ::1:4711 :::* LISTEN 650/pihole-FTL
udp 0 0 0.0.0.0:53 0.0.0.0:* 650/pihole-FTL
udp6 0 0 :::53 :::* 650/pihole-FTL
All the local addresses showing up as 0's don't look good but currently the DNS is active and blocking ads
also
pi@raspberrypi:~ $ sudo systemctl status --full --no-pager lighttpd
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2019-07-01 04:19:57 BST; 2min 17s ago
Process: 426 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 463 (lighttpd)
CGroup: /system.slice/lighttpd.service
└─463 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
Jul 01 04:19:55 raspberrypi systemd[1]: Starting Lighttpd Daemon...
Jul 01 04:19:57 raspberrypi systemd[1]: Started Lighttpd Daemon.
I'm sorry if this turns into a simple mistake gone wrong, I'm somewhat new to linux systems.
jfb
July 1, 2019, 3:32am
4
These are fine. Your debug log shows no problem with Pi-Hole other than lighttpd.
I think your problem may be the lack of php-cgi. Where did you get the distribution of Stretch you are using and is it the Lite or Desktop version?
I am currently using the lite version, I downloaded it directly from Index of /raspbian/images
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
The 2019-04-08 release to put a date to it
It was the strangest thing but I figured out eventually that I could still finally access the php file on it's own if I manually typed in http://pi.hole/admin/index.php
After doing many work arounds to no avail and leaving many files laying around, I did a fresh image of stretch and installed pihole with no issues. The domain even worked this time without having to add index.php, go figure.
system
Closed
July 23, 2019, 2:36am
10
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.