503 Error - likely php issue

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.

php -v returns "Segmentation fault"

Debug Token:

gl98rs99k3

Are you using any other websever than lighttpd?

Are there errors in /var/log/lighttpd/error.log

You have a problem with your php install

*** [ 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

I'm just using lighttpd.

Thanks, I had seen that discussion, but I have none of the under-voltage problems that caused the issue in that case.

I thought I had php issues from the beginning, but purging all php packages and re-install didn't help. Any suggestion about what I could try?

Purge lighttps as well:

sudo apt purge lighttpd

And select repair with below to have it reinstalled and configured:

pihole -r

And keep an eye on those "Under-voltage" messages.

EDIT:

dmesg -we

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