Unable to connect to admin page through browser

Expected Behaviour:

I recently got a raspberry pi zero 2 W and tried setting up pihole on it. I run on Raspberry Pi OS Lite (64-bit) - Debian Bookworm

Actual Behaviour:

When trying to connect to the admin page with either IP address or pi.hole/admin, I end up on an unknown page where the adress is not recognized. I have added the pihole IP as static and added it as IPv4 DNS

Debug Token:

https://tricorder.pi-hole.net/88w97RgG/

Thanks a lot !

Your debug log shows you have lighttpd running on your system and using port 80:

[✗] tcp:0.0.0.0:80 is in use by lighttpd (https://docs.pi-hole.net/main/prerequisites/#ports)
[✓] tcp:[::]:443 is in use by pihole-FTL
[✗] tcp:[::]:80 is in use by lighttpd (https://docs.pi-hole.net/main/prerequisites/#ports)

Your log also shows Pi-hole is configured to use ports 80 and 443:

   [webserver]
     port = "80o,443os,[::]:80o,[::]:443os"

At the moment, you can access Pi-hole web interface via https: https://192.168.1.78/admin, without any changes.

If you want to access via http, you need port 80 free, or you need to change Pi-hole's ports.

How to do it:

Method 1:

Pi-hole v6 doesn't use lighttpd.

If you don't need lighttpd for other web services, you can uninstall lighttpd and restart Pi-hole:

sudo apt remove lighttpd
sudo systemctl restart pihole-FTL.service

This will free up port 80 and restart Pi-hole web server and you will be able to access Pi-hole with http://192.168.1.78/admin or http://pi.hole/admin. https will still be available.

Method 2:

If you want to keep lighttpd, you can just change Pi-hole ports using this command:

sudo pihole-FTL --config webserver.port '8080o,443s'

Then you can access Pi-hole using one of the URLs below:

1 Like

Thanks a lot, that solves the issue !