用资源管理器显示站点目录.re:"共...
效果演示 js 代码大家自己看,代码很简单,但全部打开或关...
作者 sherly_wang 发布于 2003-09-02 分类:php基础编程
各位大侠,菜鸟在线求助windows2000+iis+php的配置方法。
配了一上午还是不行啊。
配置步骤是:
1。从php官方网站下载php-4.3.2-Win32.zip,并解压
到c:php目录下。
2。修改php.ini-dist为php.ini,其中更改项目为:
extension_dir=c:phpextensions;
cgi.force_redirect = 0;
去掉所有"extension=php_*.dll"前的分号。
3。将php.ini和php4ts.dll文件拷贝至
c:winntsystem和c:winntsystem32目录下。
将php文件夹中dlls中的所以dll文件拷贝至
c:winntsystem32目录下。
4。配置IIS,"程序"—“管理工具”—“Internet服务管理器”,
右击“ 默认的web站点”,
选择“属性”,在弹出的窗口中选择“添加”,
在“可执行文件”中填:c:phpphp.exe %s %s
在“扩展名”中填:.php
在“主目录”下的“执行许可”改为“脚本和可执行程序”
但是在执行最简单的helloworld程序却出错,错误如下:
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.
各位大侠请帮忙啊,小妹在线等。
逛论坛交流:各位大侠,小妹在线求助windows2000+iis+php的配置方法。
你的配置过程有点小问题,请参阅http://www.phpe.net/articles/355.shtml
php.ini里面的extension_dir没有配置好
不要把所有的所有模块都用上..只用上你自己要的吧..
有的模块PHP没有自带.要自己下载..
我把那些dll前的注释加上了还是不行啊?怎么回事,大家帮帮我啊!
请帖出你的错误
错误还跟第3贴的一摸一样
救命啊
建议使用php410-installer,完全傻瓜式的,一路NEXT就可以了
8 条回复
回复