初来宝地,放分100先。还有个小问题知道的帮帮忙回答一下。

hammer_shi 2003-06-17 12:41:32
我的 php 安装完成,再配置iis,但是我 在 EditPlus 写

<?php
echo "hello, world\n";
?>
却没反应是什么原因呀?
呵呵,不知道的就顶一下。先谢谢了。
...全文
51 16 打赏 收藏 转发到动态 举报
写回复
用AI写文章
16 条回复
切换为时间正序
请发表友善的回复…
发表回复
G0dSaveMe 2003-06-17
  • 打赏
  • 举报
回复
自建的话要改设置吧。用APACHE
hammer_shi 2003-06-17
  • 打赏
  • 举报
回复
allkill(傲气游) :
我就是按照安装说明操作的,但是现在检查不出问题。
iis下配置的目录和D:\Inetpub\wwwroot(操作系统在D:)是不是要一致啊?
能不能自建文件夹?
allkill 2003-06-17
  • 打赏
  • 举报
回复
如确认你的PHP安装成功的话。

你把文件放到你有IIS的目录下运行并且确定IIS能够解析.php才可以。

你看看手册吧!里头说的很详细的。
hammer_shi 2003-06-17
  • 打赏
  • 举报
回复
哦,可以提示一下可能出问题的地方。
hammer_shi 2003-06-17
  • 打赏
  • 举报
回复
呵呵,问题已解决,看联机文档的!谢谢大家
intereye 2003-06-17
  • 打赏
  • 举报
回复
为什么不用APACHE呢?
又好配又好用.
hammer_shi 2003-06-17
  • 打赏
  • 举报
回复
你把你的PHP的目录中的PHP。EXE给EVERYONE执行权限应该就可以拉

怎么收回权限呀?
jc 2003-06-17
  • 打赏
  • 举报
回复
你用的是CGI的模式,
你把你的PHP的目录中的PHP。EXE给EVERYONE执行权限应该就可以拉!
建议你使用ISAPI的方式,这样够快!
你要把php4ts.dll COPY到你的系统目录中去,然后在过滤器中设置为C:\PHP\sapi\php4isapi.dll.
okdw 2003-06-17
  • 打赏
  • 举报
回复
不如下个Apache安装吧,用IIS的话配置就可能有问题,当然配好了也可以
hammer_shi 2003-06-17
  • 打赏
  • 举报
回复
运行http://localhost/index.php3时报错:

Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.

For more information as to why this behaviour exists, see the manual page for CGI security.

For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page.


怎么回事呀?
hammer_shi 2003-06-17
  • 打赏
  • 举报
回复
谢谢,试试。
blessbird 2003-06-17
  • 打赏
  • 举报
回复
没有你们想的那么复杂!

当你设置好IIS的相当配置之后,文件的存放位置你想放那儿就放那儿!但只要在IIS的主目录位置指向它就好了!PHP.ini文件不用去改的!

IIS里面的ISAPI也可进行相关的PHP.exe的指向!

另外记得将php4isapi.dll拷到system32下面,将php.ini拷到winnt目录下,而不是system32下面!
hammer_shi 2003-06-17
  • 打赏
  • 举报
回复
我修改system32下的php.ini文件
doc_root = c:\inetpub\wwwroot\ 服务器的主目录
extension_dir = c:\php4\extensions\ 扩展文件的目录
但是还是不行呀。



fengzhenwei 2003-06-17
  • 打赏
  • 举报
回复
修改php.ini文件的路径

还要安装成功后不能直接用IE打开文件看。
必须通过输入http://服务器名称/文件名
这样来看,否则不能解析PHP代码。
hammer_shi 2003-06-17
  • 打赏
  • 举报
回复
哦,我是按照在2000下安装的方法安装的。
我运行php目录下的go-pear文件,随后按照它的要求做,但是在第三步出现:
WARNING! The include_path defined in the currently used php.ini does not
contain the PEAR PHP directory you just specified:
<C:\php4\pear>
If the specified directory is also not in the include_path used by
your scripts, you will have problems getting any PEAR packages working.
和最后
WARNING! The include_path defined in the currently used php.ini does not
contain the PEAR PHP directory you just specified:
<C:\php4\pear>
If the specified directory is also not in the include_path used by
your scripts, you will have problems getting any PEAR packages working.
情帮帮忙。分不够可以家!
lsaturn 2003-06-17
  • 打赏
  • 举报
回复
到php.net下一个php for windows的版本
装上就可以使用了
估计你是php没有装好
是不是提醒你是否下载这个页面?
不是这么安装的话需要在iis中指定解析.php后缀的php.exe的位置

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧