Date: Sun, 5 Nov 2006 07:18:39 +0100 From: Joerg Pernfuss <elessar@bsdforen.de> To: David Banning <david+dated+1163133289.92ecf6@skytracker.ca> Cc: questions@freebsd.org Subject: Re: compiling php5 with fastcgi Message-ID: <20061105071839.4466c992@loki.starkstrom.lan> In-Reply-To: <20061105043448.GA64229@skytracker.ca> References: <20061105043448.GA64229@skytracker.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <david+dated+1163133289.92ecf6@skytracker.ca> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061105071839.4466c992>