Hi,
I installed Pi-hole following these instructions I found here.
Apparently it’s working, except that I can’t access the web admin page. I get a 404 not found error.
These are my outputs.
pihole status
[✓] DNS service is running
[✓] Pi-hole blocking is Enabled
curl -I 127.0.0.1/pihole
HTTP/1.1 404 Not Found
Content-Type: text/html
Content-Length: 345
Date: Thu, 05 Apr 2018 00:15:51 GMT
Server: lighttpd/1.4.35
Any idea what could be the problem?
Thanks
Abraham
Check the server document root in /etc/lighttpd.conf is correct:
It may be :
server.document-root = “/var/www/html”
or
server.document-root = “/var/www”
Check it matches where your pihole web interface are.
John
I believe they match
Here’s my /etc/lighttpd/lighttpd.conf
cat /etc/lighttpd/lighttpd.conf
server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
# "mod_rewrite",
)
server.document-root = "/var/www"
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
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" )
# default listening port for IPv6 falls back to the IPv4 port
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"
and here’s part of pihole debug
*** [ DIAGNOSING ]: Core version
[i] Core: v3.2.1 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Branch: HEAD (https://discourse.pi-hole.net/t/the-pihole-command-with-examples/738#checkout)
[i] Commit: v3.2.1-0-ge602008
*** [ DIAGNOSING ]: Web version
[i] Web: v3.2.1 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Branch: HEAD (https://discourse.pi-hole.net/t/the-pihole-command-with-examples/738#checkout)
[i] Commit: v3.2.1-0-g31dddd8-dirty
*** [ DIAGNOSING ]: FTL version
[✓] FTL: v2.13.2 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
*** [ DIAGNOSING ]: dnsmasq version
[i] 2.72
*** [ DIAGNOSING ]: lighttpd version
[i] 1.4.35
*** [ DIAGNOSING ]: Setup variables
PIHOLE_INTERFACE=eth0
IPV4_ADDRESS=192.168.1.180/24
IPV6_ADDRESS=
PIHOLE_DNS_1=8.8.8.8
PIHOLE_DNS_2=8.8.4.4
QUERY_LOGGING=true
INSTALL_WEB=true
LIGHTTPD_ENABLED=0
*** [ DIAGNOSING ]: Dashboard and block page
[✗] X-Header does not match or could not be retrieved.
HTTP/1.1 404 Not Found
Content-Type: text/html
Content-Length: 345
Date: Thu, 05 Apr 2018 22:51:11 GMT
Server: lighttpd/1.4.35
[✗] X-Header does not match or could not be retrieved.
HTTP/1.1 404 Not Found
Content-Type: text/html
Content-Length: 345
Date: Thu, 05 Apr 2018 22:51:11 GMT
Server: lighttpd/1.4.35
*** [ DIAGNOSING ]: contents of /etc/lighttpd
-rw-r--r-- 1 root root 1039 Apr 4 15:23 /etc/lighttpd/lighttpd.conf
server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
)
server.document-root = "/var/www"
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
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"
Nevermind, I was able to access it on http://127.0.0.1/html/admin/
I forgot the last slash on my previous tries. It now works!!
Thanks 