From owner-freebsd-questions@FreeBSD.ORG Wed Sep 12 16:41:10 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CD9F16A419 for ; Wed, 12 Sep 2007 16:41:10 +0000 (UTC) (envelope-from gabriel@pixeco.com) Received: from pixeco.com (pixeco.com [216.70.123.161]) by mx1.freebsd.org (Postfix) with ESMTP id 41A8013C457 for ; Wed, 12 Sep 2007 16:41:10 +0000 (UTC) (envelope-from gabriel@pixeco.com) Received: (qmail 26065 invoked from network); 12 Sep 2007 16:41:09 +0000 Received: from unknown (HELO ?192.168.1.20?) (91.84.56.254) by pixeco.com with SMTP; 12 Sep 2007 16:41:09 +0000 Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: <2C739C99-5622-409F-AE47-219D302483E8@pixeco.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-questions@freebsd.org From: Gabriel Dragffy Date: Wed, 12 Sep 2007 17:41:01 +0100 X-Mailer: Apple Mail (2.752.3) Subject: Lighttpd won't serve up php pages - 500 internal server error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Sep 2007 16:41:10 -0000 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