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:
GUI reachable
Actual Behaviour:
Pi-hole service runs ok, but the interface is not accessible and returns error 503 Service not available.
From the debug, it seems php-related, I purged all php packages and repaired pihole. The process completes successfully, but it still doesn't work.
*** [ DIAGNOSING ]: php version
[✗] php version could not be detected.
*** [ DIAGNOSING ]: contents of /var/log/lighttpd
-rw-r--r-- 1 www-data www-data 6584430 Aug 23 09:48 /var/log/lighttpd/error.log
2020-08-23 00:00:55: (server.c.1759) logfiles cycled UID = 0 PID = 6540
2020-08-23 00:00:55: (gw_backend.c.476) unlink /var/run/lighttpd/php.socket-0 after connect failed: Connection refused
2020-08-23 00:00:55: (gw_backend.c.335) child signalled: 11
2020-08-23 00:00:55: (gw_backend.c.607) gw-backend failed to start: /usr/bin/php-cgi
2020-08-23 00:00:55: (gw_backend.c.609) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version. If this is PHP on Gentoo, add 'fastcgi' to the USE flags. If this is PHP, try removing the bytecode caches for now and try again.
2020-08-23 00:00:55: (gw_backend.c.1047) ERROR: spawning gw failed.
2020-08-23 00:00:56: (gw_backend.c.476) unlink /var/run/lighttpd/php.socket-0 after connect failed: Connection refused