August F.Y. Chao

含有 ‘freebsd’標籤(tag)的文章們

設定 Apache2+Mod_fastcgi+PHP5_cgi

In 02 備忘錄, 41 資訊技術, 41_C 系統管理 on 十月 8, 2007 at 7:24 午後
Configure Part #2

PHP bypasses the normal FastCGI process manager, and uses its own system to control how many copies of the PHP binary are running, bringing up 8 by default. Since you often want finer control, I usually install a tiny shell script with configuration variables in it into the cgi-bin directory and have it run PHP instead:

#!/bin/sh

PHPRC=”/usr/local/etc/php/client”
export PHPRC
PHP_FCGI_CHILDREN=4
export PHP_FCGI_CHILDREN
exec /usr/local/bin/php-fcgi

別忘了,要用 php-cgi 不能用 php

http://www.fastcgi.com/docs/faq.html#PHP

[備忘] FreeBSD 中在 ports/ 下可用的參數

In 02 備忘錄, 40 專業領域, 41_C 系統管理 on 十月 8, 2007 at 8:51 am

還滿不錯的!

另也可以看 /usr/ports/Mk/bsd.port.mk 更清楚!!

還有 USE_ 系列~ 及 WWWDIR 哈~

http://blog.yam.com/protect/article/413082