compiling php5 with fastcgi
Joerg Pernfuss
elessar at bsdforen.de
Sun Nov 5 06:20:20 UTC 2006
On Sat, 4 Nov 2006 23:34:48 -0500
David Banning <david+dated+1163133289.92ecf6 at skytracker.ca> wrote:
> 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
> start: 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?
CLI: /usr/local/bin/php -v
PHP 5.1.4 (cli) (built: Jun 12 2006 19:10:01)
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
--
| /"\ 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. |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20061105/b28192a2/signature.pgp
More information about the freebsd-questions
mailing list