I am sure this is a very easy fix but I do not work in IT and am struggling here. Thank you in advance for all help!
I have been using Pi-hole for about 2 years.
I had an SD failure in my Pi this weekend.
Replaced the SD with a new card and reinstalled everything like shown on the Pi-hole site. Running a clean install of Debain bullseye 32bit with no desktop.
I do not have a micro-HDMI cable so I installed all of this to the SD card with a different Pi that has a monitor and keyboard connected to make it easier for me to work with. If command line troubleshooting will be needed, I will switch the SD card back to that machine. Hopefully I am overlooking a simple setting within Pi-hole itself.
I reinstalled everything using the latest version Pi-hole. (curl -sSL https://install.pi-hole.net | bash)
The ip is bound to the Pi-hole device at the router. Once I placed the new SD card into the original Pi, I am able to access the web interface through my network at its original address.
I can access the web interface for the system but it is now showing the DNS is not running and when enabled, it immediately stops.
Under the "settings" tab, I get the following error
PHP error (2): fsockopen(): unable to connect to 127.0.0.1:4711 (Connection refused) in /var/www/html/admin/scripts/pi-hole/php/FTL.php:47
Nothing on my wifi or network has changed from when it was working on the old setup last week. I do not remember having this issue when I setup the original installation. The old setup has been working great and without issues up until this past weekend when the SD died.
I am sure this is a super simple fix and I am overlooking something obvious. Please explain in simple terms how to fix this. Thank you in advance for your help!
Expected Behaviour:
Pi-hole to work as before.
Actual Behaviour:
PHP error (2): fsockopen(): unable to connect to 127.0.0.1:4711 (Connection refused) in /var/www/html/admin/scripts/pi-hole/php/FTL.php:47