Project

General

Profile

503 - Service Not Available

Added by spflanze almost 13 years ago

I need help solving this 503 - Service Not Available error.

This is making an entire Drupal based site unavailable 100% of the time on my testing server that has hardly any traffic.

I know PHP is running because there are other much smaller PHP applications that do run normally.

I have looked at error logs and cannot identify a cause in them. It may be I do not know what to look for there.


Replies (4)

RE: 503 - Service Not Available - Added by spflanze almost 13 years ago

I have found these entries in error.log that might have something to do with this. If it does I need to know what to do about it.

2011-06-05 23:34:59: (mod_fastcgi.c.1734) connect failed: No such file or directory on unix:/var/run/lighttpd/Webmaster-example.info-php-fpm.socket 
2011-06-05 23:34:59: (mod_fastcgi.c.3027) backend died; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 1 
2011-06-05 23:35:01: (mod_fastcgi.c.2854) fcgi-server re-enabled: unix:/var/run/lighttpd/Webmaster-example.info-php-fpm.socket 

RE: 503 - Service Not Available - Added by spflanze almost 13 years ago

When is the file /var/run/lighttpd/Webmaster-example.info-php-fpm.socket supposed to be created? At startup? When the request comes in?

I have as an experiment set the /var/run/lighttpd permissions to 777. With these permissions no file appears in the directory when lighttp starts up and I still get error 503 in the browser.

I tried creating /var/run/lighttpd/Webmaster-example.info-php-fpm.socket and set its with the touch command and set its owner and group to www-data. The error log indicated the connection was refused in response to a request.

How can I verify that lighttpd was compiled with fastcgi enabled?

RE: 503 - Service Not Available - Added by spflanze almost 13 years ago

According to
http://redmine.lighttpd.net/wiki/lighttpd/Docs%3AModFastCGI
the php -v command can be used to find out if php was compiled with fastcgi support. What to look for is (cgi-fcgi) in the response. This is what I get:

# php -v
PHP 5.2.17-0.dotdeb.0 with Suhosin-Patch 0.9.7 (cli) (built: Jan  7 2011 08:21:57)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans
    with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH

(cgi-fcgi) isn't there. But when I execute phpinfo() I get in its output the line:
Server API     CGI/FastCGI

which appears to be contradictory information. Does my php installation have fastcgi support or does it not?

RE: 503 - Service Not Available - Added by fastcgi almost 13 years ago

you may try php-cgi, after your compiled php, it also come out this binary.

good luck

    (1-4/4)