August F.Y. Chao

含有 ‘fastcgi’標籤(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