No Web Interface After Install

Total Pi-Hole noob.

I installed Pi-Hole and it seems to work, can't tell though. I set my dns in ip4 and can surf websites, ipconfig shows my dns address being used. I also made sure within my router that I the dns address set to be used. I have tried connecting to the web interface from the raspberry pi and from my windows machine, both cannot connect. I've searched these forums and google but cannot seem to find a solution to gain access or fix what's wrong.

Maybe a stupid question but...

Do You get same/no answer if using
ip-address/admin or pi-hole-name/admin

I'm having exactly the same problem. I installed Pi-Hole on a clean installation of Raspbian. The Pi-Hole installation seems to work correctly - I'm using the Pi address for DNS and it seems to be blocking ads - but I'm unable to get to the admin web interface. Raspbian shows that the device is using the correct static IP. I've tried pi-hole/admin and ip-address/admin with no success. Using ip-address/admin in Chrome returns the following error:

This site can’t be reached
10.0.131.69 refused to connect.

Using pi-hole/admin returns this error:

This site can’t be reached
pi-hole’s server DNS address could not be found.

As a follow-up, I ran diagnostic (pihole -d) and it appears that the lighttdp service isn't running and perhaps isn't even installed:

#######################################
########### Processes Check ###########
#######################################

lighttpd processes status:
● lighttpd.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)

dnsmasq processes status:
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled)
Drop-In: /run/systemd/generator/dnsmasq.service.d
└─50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf
Active: active (running) since Fri 2016-08-26 09:39:24 CDT; 1h 13min ago
Process: 571 ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf (code=exited, status=0/SUCCESS)
Process: 558 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=0/SUCCESS)
Process: 469 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS)
Main PID: 565 (dnsmasq)
CGroup: /system.slice/dnsmasq.service
└─565 /usr/sbin/dnsmasq -x /var/run/dnsmasq/dnsmasq.pid -u dnsmasq -r /var/run/dnsmasq/resolv.conf -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5

Aug 26 09:39:24 raspberrypi dnsmasq[469]: dnsmasq: syntax check OK.
Aug 26 09:39:24 raspberrypi systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
#######################################
############ lighttpd.conf ############
#######################################
server.modules = (
"mod_access",
"mod_accesslog",
"mod_expire",
"mod_compress",
"mod_redirect",
"mod_setenv",
"mod_rewrite"
)
server.document-root = "/var/www/html"
server.error-handler-404 = "pihole/index.html"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
server.port = 80
accesslog.filename = "/var/log/lighttpd/access.log"
accesslog.format = "%{%s}t|%V|%r|%s|%b"
index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
$HTTP["url"] =~ "^/admin/" {
setenv.add-response-header = (
"X-Pi-hole" => "The Pi-hole Web interface is working!",
"X-Frame-Options" => "DENY"
)
}
$HTTP["url"] =~ "^(?!/admin)/." {
setenv.add-response-header = ( "X-Pi-hole" => "A black hole for Internet advertisements." )
url.rewrite = ("(.
).js" => "pihole/index.js")
}

No lighttpd error.log file found!

I Had the same problem.. Hopes this will help everyone else.

I had found that php had quit running after the install..

Open a terminal session on the PI
To enable the server to handle php scripts the fastcgi-php module should be enabled by issuing in the command

sudo lighttpd-enable-mod fastcgi-php

Then reload the server using
sudo service lighttpd force-reload

Then go back and check the admin page.

If there is still and issue, make sure you have PHP running.
Create a simple PHP script and load it in www directory.

1 Like