403 - Forbidden after re-installing pihole

Good Afternoon All,

I have an issue i have not been able to resolve. Im running PiHole on LMDE Cindy 3. The very first time i installed pihole it worked, It blocked ads and the webgui worked. I started having issues and wasn't thinking clearly so i uninstalled pihole with pihole uninstall command. pihole uninstalled but i have revisited it recently and now im getting 403 - Forbidden when i try and access the webgui. Ive checked and pihole is running as i can see blocking via putty using pihole -c i just cannot get the webgui working. When i run curl -I http://localhost/admin i get the following
HTTP/1.1 301 Moved Permanently
Location: http://localhost/admin/
Date: Tue, 03 Sep 2019 01:53:21 GMT
Server: lighttpd/1.4.45

I thought it might be permission based and have checked lightpd and the sub directory and they look ok to me

drwxr-xr-x 2 root root 4096 Sep 3 11:38 lighttpd

administrator@white-forest:/etc/lighttpd$ ls -l
total 4
-rw-r--r-- 1 root root 0 Sep 3 11:38 external.conf
-rw-r--r-- 1 root root 3498 Sep 3 11:38 lighttpd.conf

I`m unsure how to proceed further with resolving this. I did alot of troubleshooting but have recently moved house so i didnt have time to upload all the testing i had done. As i said pihole is currently working i just cannot access the webgui

Regards
Danny

I`ve tried the following

sudo dpkg -P lighttpd
sudo apt install --reinstall lighttpd
pihole -r

Am now getting the following for the webgui
[ERROR]: Unable to parse results from queryads.php : Unhandled error message (Invalid domain! )

Please provide us with the debug token provided during a pihole -d run.

Hi Dan,

Thanks for responding. This is the debug token https://tricorder.pi-hole.net/abv8dyioae

What are the permissions on the files in /var/www/html/admin?

Hi Dan,

Thanks for responding. Unfortunatley this case can now be closed. I ran into a much bigger problem on the weekend and had a small timeframe to resolve the issue so i rebuilt the linux server. I have re-installed pihole and the WebGui is working (As expected after a rebuild). I wish i could have gotten to the bottom of this issue but i needed the server resolved.

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