Gentoo user might not aware this because we can compile PHP with threads use flag without realizing the warning.
Before get start with apache-worker fcgid and php. You need the following :
1) installed PHP with cgi use flag.
2) installed mod_fcgid (emerge mod_fcgid)
PHP configuration :
- modify /etc/php/cgi-php5/php.ini to suite your need.
apache configuration :
- modify /etc/apache2/modules.d/20_mod_fcgid.conf adding the following in
AddHandler fcgid-script .php .fcgiDefaultInitEnv PHPRC "/etc/php/cgi-php5"IdleTimeout 60BusyTimeout 120ProcessLifeTime 360SpawnScoreUpLimit 2100MaxProcessCount 2100DefaultMaxClassProcessCount 2100IPCConnectTimeout 120IPCCommTimeout 120FCGIWrapper /usr/bin/php-cgi .php
Please change the /usr/bin/cgi/ to your path. And don't forget to add +ExecCGI to option directive.
- edit /etc/conf.d/apache2 add -D FCGID to APACHE2_OPTS
restarting apache.
ไม่มีความคิดเห็น:
แสดงความคิดเห็น