RE: running lighttpd with FastCGI

2005-08-03 Thread Sander Holthaus - Orange XL
David Banning wrote:
>> 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: 
> 
> Yes, I just found that reference on the lighttpd website. I
> actually did try it, but ran into access problems. I -did-
> achieve success by compiling the code available from the lighttpd
> website. 
> 
> Just so I understand how to handle options when compiling in the
> ports; 
> 
>> .if defined(WITH_REDIRECT)
>> CONFIGURE_ARGS+=--enable-force-cgi-redirect
>> .endif
> 
> To enable this, in the correct port I would go;
> 
> # make install WITH_DIRECT="yes"
> 
> Is that the correct syntax for enabling options?

I'm not sure what the definitive way is, but I use the following (php5 with
fastcgi):

make -DWITH_FASTCGI -DWITH_REDIRECT -DWITH_DISCARD install clean
>From what I understand, you do not need to set those to yes explicitely. 

Clean is not necessary, but it will save you some diskspace.

Kind Regards,
Sander Holthaus


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: running lighttpd with FastCGI

2005-08-03 Thread David Banning
> 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:

Yes, I just found that reference on the lighttpd website. I actually did
try it, but ran into access problems. I -did- achieve success by compiling
the code available from the lighttpd website.

Just so I understand how to handle options when compiling in the ports;

> .if defined(WITH_REDIRECT)
> CONFIGURE_ARGS+=--enable-force-cgi-redirect
> .endif

To enable this, in the correct port I would go;

# make install WITH_DIRECT="yes"

Is that the correct syntax for enabling options?

Thanks for your comments. I am now having trouble finding alternatives
for redirection to be placed on the .htaccess file. I don't see any
reference for that on the lighttpd website. I will try to post to that site.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: running lighttpd with FastCGI

2005-08-03 Thread Sander Holthaus - Orange XL
[EMAIL PROTECTED] 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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


running lighttpd with FastCGI

2005-08-02 Thread David Banning
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.


-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"