Web Interface Stopped Working

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:

Access web interface

Actual Behaviour:

Web page looks different and doesn't allow me to manage anything

Debug Token:

https://tricorder.pi-hole.net/fb1vXhJ7/

Can you describe in what way it looks different (different to how you've previously seen it working okay?) and in what way can you not manage anything?

It looked normal prior to yesterday. I haven't made any changes that I'm aware of other than DietPi and PiHole updates

It might be worth closing all browser windows and tabs, and then in a fresh tab clearing your cache and cookies (probably somewhere in History menu or similar). This will close all sessions in everything so you'll need to log in to things again, including the Pi-hole.

Does that allow it to load correctly? If not, what browser is it – it will have a "developer console" which can be useful to see what's not loading correctly. And can you try another browser if you have one, maybe on a different device.

Got this when I tried using Chrome:

<?php /* Pi-hole: A black hole for Internet advertisements * (c) 2017 Pi-hole, LLC (https://pi-hole.net) * Network-wide ad blocking via your own hardware. * * This file is copyright under the latest version of the EUPL. * Please see LICENSE file for your rights under this license. */ $indexpage = true; require 'scripts/pi-hole/php/header_authenticated.php'; require_once 'scripts/pi-hole/php/gravity.php'; ?>




Total queries

---

- active clients

Queries Blocked

---

List blocked queries

Percentage Blocked

---

List all queries

Domains on Adlists

---

Manage adlists

Total queries over last 24 hours

Client activity over last 24 hours

Query Types

Upstream servers

<?php if ($boxedlayout) { $tablelayout = 'col-md-6'; } else { $tablelayout = 'col-md-6 col-lg-6'; } ?>

Top Permitted Domains

Domain Hits Frequency

Top Blocked Domains

Domain Hits Frequency

Top Clients (total)

Client Requests Frequency

Top Clients (blocked only)

Client Requests Frequency
<?php require 'scripts/pi-hole/php/footer.php'; ?>

You are running the Apache web server, not the shipped lighttpd.

As long as Apache is on port 80, lighttpd cannot bind to that port and won't run.

[✗] tcp:*:80 is in use by apache2 (https://docs.pi-hole.net/main/prerequisites/#ports)

*** [ DIAGNOSING ]: Dashboard headers
[✗] Web interface X-Header: X-Header does not match or could not be retrieved.
HTTP/1.1 200 OK
Date: Tue, 20 Dec 2022 15:11:44 GMT
Server: Apache/2.4.54 (Debian)
Last-Modified: Wed, 23 Nov 2022 12:54:47 GMT
ETag: "2886-5ee22cb16b951"
Accept-Ranges: bytes
Content-Length: 10374
1 Like

Ok, How would I go about fixing this? I'm a noob, hence why I used DietPi to configure everything...

This means your web server is not configured to execute PHP files.

Suggestion:
Disable Apache (or use a different port for Apache) and run Pi-hole web interface using the default config.

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