From owner-freebsd-questions@FreeBSD.ORG Sun Nov 5 04:35:00 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E370A16A415 for ; Sun, 5 Nov 2006 04:35:00 +0000 (UTC) (envelope-from david+dated+1163133289.92ecf6@skytracker.ca) Received: from 3s1.com (3s1.com [209.161.205.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E52543D8B for ; Sun, 5 Nov 2006 04:34:51 +0000 (GMT) (envelope-from david+dated+1163133289.92ecf6@skytracker.ca) Received: from 3s1.com (localhost [127.0.0.1]) by 3s1.com (8.13.6/8.13.6) with ESMTP id kA54YneO066997 for ; Sat, 4 Nov 2006 23:34:49 -0500 (EST) (envelope-from david+dated+1163133289.92ecf6@skytracker.ca) Received: (from david@localhost) by 3s1.com (8.13.6/8.13.6/Submit) id kA54YncV066996 for questions@freebsd.org; Sat, 4 Nov 2006 23:34:49 -0500 (EST) (envelope-from david+dated+1163133289.92ecf6@skytracker.ca) X-Authentication-Warning: 3s1.com: david set sender to david+dated+1163133289.92ecf6@skytracker.ca using -f Received: by 3s1.com (tmda-sendmail, from uid 1000); Sat, 04 Nov 2006 23:34:49 -0500 Date: Sat, 4 Nov 2006 23:34:48 -0500 To: questions@freebsd.org Message-ID: <20061105043448.GA64229@skytracker.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) From: David Banning Cc: Subject: compiling php5 with fastcgi 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: Sun, 05 Nov 2006 04:35:01 -0000 I see that php5 compiles with fastcgi as the default. I am attempting to run lighttpd which gives the error; (mod_fastcgi.c.1048) the fastcgi-backend /usr/local/bin/php failed to start: (mod_fastcgi.c.1052) child exited with status 0 /usr/local/bin/php (mod_fastcgi.c.1055) if you try do run PHP as FastCGI backend make sure you use the FastCGI enabled version. You can find out if it is the right one by executing 'php -v' and it should display '(cgi-fcgi)' in the output, NOT (cgi) NOR (cli) (mod_fastcgi.c.1060) If this is PHP on Gentoo add fastcgi to the USE flags (mod_fastcgi.c.1356) [ERROR]: spawning fcgi failed. "php -v", in my case; PHP 5.1.6 (cli) (built: Sep 28 2006 14:43:48) (DEBUG) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies the lighttpd log states that it should read fastcgi, and not cgi or cli. Mine shows cli, but why would the default installation include both cli -and- fastcgi if both could not run together?