DNS & Web Interface not Working and Displaying Strange

Please follow the below template, it will help us to help you!

If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx instead of lighttpd, or there is some other aspect of your install that is customised) - please use the Community Help category.

Expected Behaviour:

Normal behaviour of Pi-Hole

  • Loading Admin Page
  • Blocking Ads
  • Using DNS

Actual Behaviour:

If I try to open the admin page via

  • http://<raspberrypi-ip>/admin/ the php code is displayed in the browser as pure code like in a text editor
  • http://pi.hole/admin/ the browser says "This site can’t be reached pi.hole’s DNS address could not be found. Diagnosing the problem. DNS_PROBE_POSSIBLE
    If I enter ipconfig /all on my windows pc the DNS IP is the one from my Fritz Box

I set the IP of the Raspberry Pi to static and set it as the DNS server in the Fritz Box settings and as the local DNS server for DHCP

And the Raspberry Pi is connected to the Fritz Box over WLAN

What could be the issue?

Thanks in advance :slight_smile:

Debug Token:

Debug Token

This happens when the web server is not correctly configured to execute PHP pages.

Your debug log shows the Web Interface is served by Apache and it is using port 80:

[✗] tcp:*:80 is in use by apache2

You have 2 options:

  1. disable apache and let lighttpd handle the web interface pages (simpler solution, unless you need apache for other services);
  2. keep using apache, but configure it to execute PHP pages (more advanced solution).

Thank you very much this solved the issue with the web interface.

But http://pi.hole/admin is still not resolved. I am hosting a webserver under http://192.168.178.145:5000
I added the IP in the DNS Records but if I try to go to it, it will also not resolve. Any ideas? If I open the server with the IP everything works fine

Thanks in advance :slight_smile:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.