Date: Tue, 20 Oct 2009 09:45:47 +0200 From: "Johan Hendriks" <Johan@double-l.nl> To: "Marc G. Fournier" <scrappy@hub.org> Cc: freebsd-questions@freebsd.org Subject: RE: PHP5 + fastcgi + apache2.2 ... how to for FreeBSD? Message-ID: <57200BF94E69E54880C9BB1AF714BBCBA5708B@w2003s01.double-l.local> References: <alpine.BSF.2.00.0910191921361.3709@hub.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Install from ports lang/php5
do NOT build the apache module (checkbox number 3)
=81[ ] 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=3D"/usr/local/etc"
export PHPRC
#PHP_FCGI_CHILDREN=3D4
#export PHP_FCGI_CHILDREN
#PHP_FCGI_MAX_REQUESTS=3D5000
#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-questions@freebsd.org =
[mailto:owner-freebsd-questions@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=20
their whole apget stuff, but would like to find something that "speaks=20
normally" :)
Thx ...
----
Marc G. Fournier Hub.Org Hosting Solutions S.A.
scrappy@hub.org http://www.hub.org
Yahoo:yscrappy Skype: hub.org ICQ:7615664 MSN:scrappy@hub.org
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to =
"freebsd-questions-unsubscribe@freebsd.org"
No virus found in this incoming message.
Checked by AVG - www.avg.com=20
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=20
Version: 8.5.422 / Virus Database: 270.14.20/2444 - Release Date: =
10/18/09 09:04:00
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57200BF94E69E54880C9BB1AF714BBCBA5708B>
