查看完整版本: [-- win32下装php5注意的一个问题 --]

.::: 一路问情 :::. -> 『建站技术』 -> win32下装php5注意的一个问题 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

快乐BOY 2008-08-19 17:54

在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


查看完整版本: [-- win32下装php5注意的一个问题 --] [-- top --]



Powered by PHPWind v6.3.2 Code © 2003-08 PHPWind
Time 0.047096 second(s),query:3 Gzip enabled

You can contact us