Problem accessing Pi-hole web admin page Odroid HC1 - FIXED

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
avr
Posts: 11
Joined: Thu Apr 05, 2018 7:35 pm

Problem accessing Pi-hole web admin page Odroid HC1 - FIXED

Post by avr »

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.

Code: Select all

pihole status

[✓] DNS service is running
[✓] Pi-hole blocking is Enabled

Code: Select all

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
Last edited by avr on Fri Apr 06, 2018 1:12 am, edited 1 time in total.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Problem accessing Pi-hole web admin page Odroid HC1

Post by johnvick »

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
avr
Posts: 11
Joined: Thu Apr 05, 2018 7:35 pm

Re: Problem accessing Pi-hole web admin page Odroid HC1

Post by avr »

johnvick wrote:Check the server document root in /etc/lighttpd.conf is correct
I believe they match

Here's my /etc/lighttpd/lighttpd.conf

Code: Select all

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

Code: Select all

*** [ 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"
avr
Posts: 11
Joined: Thu Apr 05, 2018 7:35 pm

Re: Problem accessing Pi-hole web admin page Odroid HC1

Post by avr »

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 :D
Post Reply