Subject: Re: can't get php using fastcgi
To: Joel CARNAT <joel@carnat.net>
From: Johnny C. Lam <jlam@pkgsrc.org>
List: pkgsrc-users
Date: 04/22/2006 23:07:49
On Sun, Apr 23, 2006 at 12:13:51AM +0200, Joel CARNAT wrote:
>
> because I'm trying lighttpd, I have to build php with fastcgi support.
> I have set my mk.conf as follow:
> PKG_OPTIONS.php= -cgi fastcgi ssl
> I then rebuild www/php4.
> lighttp says my php does not have support for fastcgi.
> When I run php, I can see:
> ************************************************************************
> # php -v
> PHP 4.4.2 (cli) (built: Apr 22 2006 23:49:59)
> ************************************************************************
> which indicates I'm not using fastcgi, correct ?
>
> But php_version indicates a configure command that should have worked:
> ************************************************************************
> Configure Command => './configure' '--without-mysql' '--without-iconv'
> '--disable-posix' '--with-config-file-path=/usr/pkg/etc'
> '--with-exec-dir=/usr/pkg/libexec/php4' '--with-regex=system'
> '--enable-memory-limit' '--enable-track-vars' '--disable-ipv6'
> '--with-openssl=/usr' '--enable-fastcgi' '--prefix=/usr/pkg'
> '--host=i386--netbsdelf' '--mandir=/usr/pkg/man'
> ************************************************************************
>
> anyone can help enabling fastcgi into php ?
Try using /usr/pkg/libexec/cgi-bin/php, which is the CGI binary from
the PHP4 package.
Cheers,
-- Johnny Lam <jlam@pkgsrc.org>