Project

General

Profile

php-cgi fails to start after graceful reload with lighttpd-angel

Added by joperry almost 15 years ago

Hi,

I compiled lighty for linux using version 1.4.19 and didn't have any problems with it. Now, I'm trying to use lighttpd-angel to reload configuration changes but on the first reload and every odd numbered after that (3rd try,5th try,7th try,...) it doesn't start php-cgi threads for me. In my console I see:

1973-05-18 20:14:34: (server.c.1361) [note] graceful shutdown started
1973-05-18 20:14:34: (log.c.75) server started
1973-05-18 20:14:34: (server.c.1475) server stopped by UID = 0 PID = 476

and the like regardless of whether php-cgi came up successfully. I think it's some sort of problem with the sockets because if in my modified config file I change the socket name it has no problem bring up php-cgi.

Any ideas to fix this?

Here's my config file:

server.document-root = "/var/www/pages/" 

server.port = 80

server.username = "www" 

mimetype.assign = (
  ".html" => "text/html", 
  ".css" => "text/css",
  ".js" => "text/javascript",
  ".gif" => "image/gif",
  ".txt" => "text/plain",
  ".jpg" => "image/jpeg",
  ".png" => "image/png" 
)

static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc" )
index-file.names = ( "index.php", "index.html" )
server.modules = (
               "mod_fastcgi",
               "mod_access",
               "mod_accesslog")

fastcgi.server = ( ".php" => (( 
                     "bin-path" => "/bin/php-cgi",
                     "socket" => "/tmp/php.socket",
                     "max-procs" => 1,                     
                     "bin-environment" => ( 
                                                        "PHP_FCGI_CHILDREN" => "1",
                                                        "PHP_FCGI_MAX_REQUESTS" => "100" )

                        ))
                 )