Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Sep 2007 17:41:01 +0100
From:      Gabriel Dragffy <gabriel@pixeco.com>
To:        freebsd-questions@freebsd.org
Subject:   Lighttpd won't serve up php pages - 500 internal server error
Message-ID:  <2C739C99-5622-409F-AE47-219D302483E8@pixeco.com>

next in thread | raw e-mail | index | archive | help
Hi all

I've install php5 and php5-extensions from the latest ports and also  
lighty too. I compiled php5 with fastcgi support.

In lighttpd's error log I see the following:
2007-09-12 17:32:06: (mod_fastcgi.c.1731) connect failed: Connection  
refused on unix:/tmp/php-fastcgi.socket-3
2007-09-12 17:32:06: (mod_fastcgi.c.2885) backend died; we'll disable  
it for 5 seconds and send the request to another backend instead:  
reconnects: 0 load: 1
2007-09-12 17:32:06: (mod_fastcgi.c.2658) child signaled: 11
2007-09-12 17:32:06: (mod_fastcgi.c.2462) unexpected end-of-file  
(perhaps the fastcgi process died): pid: 26390 socket: unix:/tmp/php- 
fastcgi.socket-3
2007-09-12 17:32:06: (mod_fastcgi.c.3211) child signaled: 11
2007-09-12 17:32:06: (mod_fastcgi.c.3254) response not received,  
request sent: 850 on socket: unix:/tmp/php-fastcgi.socket-3 for / 
phpinfo.php , closing connection


I added the following to php.ini: cgi.fix_pathinfo = 1.


And the relevant sections of lighttpd.conf are:
server.modules              = (
                                 "mod_access",
                                "mod_fastcgi", )
server.document-root        = "/usr/local/www/data/"

fastcgi.server             = ( ".php" =>
                                ( "localhost" =>
                                  (
                                    "socket" => "/tmp/php- 
fastcgi.socket",
                                    "bin-path" => "/usr/local/bin/php- 
cgi"
                                  )
                                )
                             )


The web page shown just displys "500 - Internal Server Error".

Thank you

Gabriel






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2C739C99-5622-409F-AE47-219D302483E8>