403 Forbidden

Hi guys, I installed pi-hole successfully and also installed the web interface and everything seems to work great. This is the output of the command "curl -I http://localhost/admin/"

HTTP/1.1 403 Forbidden
Content-Type: text/html
Content-Length: 345
Date: Tue, 27 Jun 2017 10:54:49 GMT
Server: lighttpd/1.4.45

I see that it says 403 Forbidden but not sure what to do about it. Any help would be greatly appreciated. Thanks a lot!

Run pihole -d for a debug token.

Hi, thanks. here is my debug token.
n41bckff1u

Do you have a file at /etc/lighttpd/external.conf? What is the output of /var/log/lighttpd/access.log when you try to go to the web interface?

Hi there. There is no file called external.conf and there is only a file in /etc/lighttpd/ called lighttpd.conf. When going to the user interface and getting the 403 forbidden error, this is the output that is shown from /var/log/lighttpd/access.log.
1498560593|192.168.1.135|GET /admin HTTP/1.1|301|0
1498560593|192.168.1.135|GET /admin/ HTTP/1.1|403|345
1498560594|192.168.1.135|GET /favicon.ico HTTP/1.1|404|345
1498560632|192.168.1.135|GET /admin/ HTTP/1.1|403|345
1498560635|192.168.1.135|GET /admin/ HTTP/1.1|403|345
1498560729|192.168.1.135|GET /admin/ HTTP/1.1|403|345
1498560807|192.168.1.135|GET /admin/ HTTP/1.1|403|345
1498560889|localhost|HEAD /admin/ HTTP/1.1|403|0
1498570260|192.168.1.135|GET /admin/ HTTP/1.1|403|345
1498570262|192.168.1.135|GET /favicon.ico HTTP/1.1|404|345

  • Which operating system do you use? Is this Kali Linux as you mentioned in the other thread?
  • I assume this is a OS dependent problem with the permissions in /var/www/html/admin. What are the set permissions? Who is the lighttpd user?