Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Aug 2005 11:32:35 +0200
From:      "Sander Holthaus - Orange XL" <info@orangexl.com>
To:        "'David Banning'" <david+dated+1123461702.c9ad21@skytracker.ca>
Cc:        questions@freebsd.org
Subject:   RE: running lighttpd with FastCGI
Message-ID:  <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAKyp4ptCu/EW6/gcge57xl8KAAAAQAAAAymVFdHPdzkS9SrcoUt/FRgEAAAAA@orangexl.com>
In-Reply-To: <20050803004141.GA3788@skytracker.ca>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
owner-freebsd-questions@freebsd.org wrote:
> I am attempting to run lighttpd with FastCGI. I understand I
> must first get FastCGI support into php4. Can anyone point me
> in the right direction? I have tried all types of switches while
> compiling php4. 
> 
> I have been looking for any switches I can set by scanning
> through the Makefile of php4 in the ports.

PHP has a meta-port for cgi: www/php4-cgi. Use that to start. There are a
few options you have to define, in the Makefile of lang/php4, you will find:


.if ${PHP_SAPI} == "cgi"
OPTIONS=        REDIRECT "Enable force-cgi-redirect support" off \
                DISCARD "Enable discard-path support" off \
                FASTCGI "Enable fastcgi support" off \
                PATHINFO "Enable path-info-check support" on
.endif

And

.if ${PHP_SAPI} == "cgi"
.if defined(WITH_REDIRECT)
CONFIGURE_ARGS+=--enable-force-cgi-redirect
.endif
.if defined(WITH_DISCARD)
CONFIGURE_ARGS+=--enable-discard-path
.endif
.if defined(WITH_FASTCGI)
CONFIGURE_ARGS+=--enable-fastcgi
.endif
.if defined(WITHOUT_PATHINFO)
CONFIGURE_ARGS+=--disable-path-info-check
.endif
.endif

You want WITH_REDIRECT, as well as WITH_DISCARD and WITH_FASTCGI. (Forgot
what to do with PATHINFO).

Kind Regards,
Sander Holthaus




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAKyp4ptCu/EW6/gcge57xl8KAAAAQAAAAymVFdHPdzkS9SrcoUt/FRgEAAAAA>