Install from ports lang/php5

do NOT build the apache module (checkbox number 3)
│[ ] APACHE     Build Apache module

Then install from ports www/mod_fcgid


Create a file in /usr/local/etc/apache22/Includes   (if you have apache22) else 
use the dir from your apache version.

Name it something like fcgi.conf

Put the following in there.

LoadModule fcgid_module libexec/apache22/mod_fcgid.so

<IfModule mod_fcgid.c>
    AddHandler  fcgid-script .fcgi
    Action  application/x-httpd-php /cgi-bin/php5.fcgi
    AddHandler  application/x-httpd-php .php
</IfModule>

DirectoryIndex index.html index.php


Now create a file in /usr/local/www/apache22/cgi-bin
Call this one php5.fcgi
make it executable: chmod ug+x /usr/local/www/apache22/cgi-bin/php5.fcgi
give it the right user and group: chmod www:www 
/usr/local/www/apache22/cgi-bin/php5.fcgi

In this file put the following
#!/bin/sh
PHPRC="/usr/local/etc"
export PHPRC
#PHP_FCGI_CHILDREN=4
#export PHP_FCGI_CHILDREN
#PHP_FCGI_MAX_REQUESTS=5000
#export PHP_FCGI_MAX_REQUESTS
exec /usr/local/bin/php-cgi

I comment some things out, try for yourself if these works.
This should be it in great line.

Succes.
regards,
Johan Hendriks







-----Oorspronkelijk bericht-----
Van: owner-freebsd-questi...@freebsd.org 
[mailto:owner-freebsd-questi...@freebsd.org] Namens Marc G. Fournier
Verzonden: dinsdag 20 oktober 2009 0:22
Aan: freebsd-questions@freebsd.org
Onderwerp: PHP5 + fastcgi + apache2.2 ... how to for FreeBSD?


Is there one somewhere?  I'm finding *alot* of Debian ones dealing with 
their whole apget stuff, but would like to find something that "speaks 
normally" :)

Thx ...

----
Marc G. Fournier                        Hub.Org Hosting Solutions S.A.
scra...@hub.org                                     http://www.hub.org

Yahoo:yscrappy    Skype: hub.org    ICQ:7615664    MSN:scra...@hub.org
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.422 / Virus Database: 270.14.20/2444 - Release Date: 10/18/09 
09:04:00

No virus found in this outgoing message.
Checked by AVG - www.avg.com 
Version: 8.5.422 / Virus Database: 270.14.20/2444 - Release Date: 10/18/09 
09:04:00
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to