在win32平台下装php5,安装文件带的install.txt中关于以
cgi方式安装php5(
PHP Version 5.0.0RC1)是这么写的:
Installing
PHP for Apache as CGI binary
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you wish to install PHP as a CGI binary, read this first:
http://www.cert.org/advisories/CA-1996-11.html
and then if you are really sure, insert these lines to your conf file:
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
事实上我这样装不行,应该把最后一行改为:
Action application/x-httpd-php "/php/php-
cgi.exe"
在php文件夹下能找到php-cgi.exe这个文件.以cgi方式得用这个.
不知道怎么回事,官方install.txt居然会出错!害人. :D