From owner-freebsd-questions@FreeBSD.ORG Sun Nov 5 06:20:20 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 C2B0A16A407 for ; Sun, 5 Nov 2006 06:20:20 +0000 (UTC) (envelope-from elessar@bsdforen.de) Received: from mail.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB30E43D9D for ; Sun, 5 Nov 2006 06:18:44 +0000 (GMT) (envelope-from elessar@bsdforen.de) Received: from localhost (mail [127.0.0.12]) by mail.bsdforen.de (Postfix) with ESMTP id ADB9E4241CD; Sun, 5 Nov 2006 07:18:43 +0100 (CET) X-Virus-Scanned: amavisd-new at bsdforen.de Received: from mail.bsdforen.de ([127.0.0.12]) by localhost (mail.bsdforen.de [127.0.0.12]) (amavisd-new, port 10024) with ESMTP id 1TAZjjGXhA-3; Sun, 5 Nov 2006 07:18:43 +0100 (CET) Received: from loki.starkstrom.lan (p549CD877.dip.t-dialin.net [84.156.216.119]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdforen.de (Postfix) with ESMTP id 36F424241CA; Sun, 5 Nov 2006 07:18:41 +0100 (CET) Date: Sun, 5 Nov 2006 07:18:39 +0100 From: Joerg Pernfuss To: David Banning Message-ID: <20061105071839.4466c992@loki.starkstrom.lan> In-Reply-To: <20061105043448.GA64229@skytracker.ca> References: <20061105043448.GA64229@skytracker.ca> X-Mailer: Sylpheed-Claws 2.5.2 (GTK+ 2.8.20; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_BK0ybR=jW0w.b4nkIo3QzfP"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: questions@freebsd.org Subject: Re: 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 06:20:20 -0000 --Sig_BK0ybR=jW0w.b4nkIo3QzfP Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 4 Nov 2006 23:34:48 -0500 David Banning wrote: > I see that php5 compiles with fastcgi as the default. I am attempting > to run lighttpd which gives the error; >=20 > (mod_fastcgi.c.1048) the fastcgi-backend /usr/local/bin/php failed to > start: (mod_fastcgi.c.1052) child exited with status > start: 0 /usr/local/bin/php=20 > (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.=20 >=20 >=20 > "php -v", in my case; >=20 > 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 >=20 > 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? CLI: /usr/local/bin/php -v PHP 5.1.4 (cli) (built: Jun 12 2006 19:10:01)=20 Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies CGI: /usr/local/bin/php-cgi -v PHP 5.1.4 (cgi-fcgi) (built: Jun 12 2006 19:09:56) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies You need to adjust your lighttpd.conf. Joerg --=20 | /"\ ASCII ribbon | GnuPG Key ID | e86d b753 3deb e749 6c3a | | \ / campaign against | 0xbbcaad24 | 5706 1f7d 6cfd bbca ad24 | | X HTML in email | .the next sentence is true. | | / \ and news | .the previous sentence was a lie. | --Sig_BK0ybR=jW0w.b4nkIo3QzfP Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFFTYJAH31s/bvKrSQRAj0UAJ9cAm2AzhAL7uVnpVAk5E4JZ45bBACeOw9K 3c7lXwJQx7DGeN6Tsq1MWkw= =W2jU -----END PGP SIGNATURE----- --Sig_BK0ybR=jW0w.b4nkIo3QzfP--