分类广告


推荐文章

  • 没有找到任何内容!
您当前的位置:中国站长下载网络编程PHP专区 → 文章内容

win32下装php5注意的一个问题.

  • 作者:佚名    来源:不详    发布时间:2006-2-26 1:23:28
  • 字体大小:

在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

 oklqh 回复于:2004-04-22 13:21:06
不错不错,不过我没在windows下使用过这种方式~无法验证

 yb0312 回复于:2004-04-22 19:55:59
我 说怎么装不上 原来 原因在这里呀。
谢谢你哦 !

 HonestQiao 回复于:2004-04-22 21:23:35
从 PHP 4.3.0 版本开始,Windows 的发行包中 CLI 的执行文件为 php.exe

 cnw168 回复于:2004-04-23 08:48:27
上次我安装时就用了好长时间才明白,我去PHP的官方网站上看了一下和你上面所说的错误是一样的。见意给官方网上去信说明!

 mistjin 回复于:2004-04-24 19:58:50


 liugr3988 回复于:2004-04-26 13:21:49


<