Web Interface Not Working - "login.php Not Found" Error

Hello,

I am experiencing an issue with my Pi-hole after updating to the latest release. The web interface is not accessible, and I receive the following error when trying to access it through my browser:

Not Found
The requested URL was not found on this server.

Upon further investigation, it appears that login.php is missing. However, the Pi-hole service itself is running fine, and DNS resolution is working as expected.

Additional Context:

  • I have been using Pi-hole for over a year without issues, but this problem started after updating to the latest release.
  • I also run a web server on this machine. Could it have removed or overwritten Pi-hole’s web interface?
  • Is there a way to restore only the missing login.php file or the web interface without affecting the running Pi-hole service?
  • I have not manually removed anything related to Pi-hole, but it is possible that some configuration changes were made that affected it.

Steps I Have Tried:

  1. Restarting the Pi-hole service (pihole restartdns )
  2. Restarting the device
  3. Checking /var/www/html/admin/ for the missing file
  4. Running pihole -r (but I am unsure if this will reset other configurations)

I would appreciate any guidance on how to restore the missing web interface without affecting the existing Pi-hole settings.

Thanks in advance!

The PHP page is not missing. It was intentionally removed because Pi-hole v6 doesn't use PHP anymore.

Pi-hole v6 is a major update and a lot of things were changed.

You need to adjust the URL used to access the web interface.


NOTE:
If you have another web server running in your machine and installed v6, you will need make some adjustments to access Pi-hole web interface. I can help you, but I need a debug token to understand your current configuration.

Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:

pihole -d

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