| win32下装php5注意的一个问题 |
|
作者:tonera 文章来源:chinaunix|http://www.chinaunix.net 点击数: 更新时间:2004-10-28 0:04:20  |
在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 |
| 文章录入:admin 责任编辑:admin |
|
上一篇文章: RPM安装PHP后应如何配置 Apache
下一篇文章: RedhatAS3.0上安装Apache2+PHP5+MySQL+Resin+SSL+GD+webalizer |
| 【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |