我已经在我的Apache上安装了mod_fastcgi,并将LoadModule放到我的httpd.conf文件中。 当我做一个phpinfo(),mod_fastcgi在加载模块部分,但服务器API仍然显示为Apache 2.0。 请让我知道如何改变这一点。
执行以下步骤:
php.conf文件:
#mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php.conf.module
/var/www/cgi-bin创buildphp.fcgi文件,如下所示:
#!/斌/庆典
PHP_CGI =的/ usr /斌/ PHP-CGI
exec $ PHP_CGI
DocumentRoot或VirtualHost部分以添加AddHandler和Action指令:
...
AddHandler php5-fastcgi .php
操作php5-fastcgi /cgi-bin/php.fcgi
...
用phpinfo()testing:
# lynx -dump http://localhost/info.php | grep 'Server API' Server API CGI/FastCGI