我在IIS建了个虚拟目录,指向d:\cscsystem 在Dreamweaver中打开d:\cscsystem\index.php,说该页无法显示 但直接在IE里输入http://127.0.0.1/cscsystem,会以目录结构显示 点击下面含有.PHP的文件,就显示: 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.俺E文不好,看不太懂,烦请各位指教 谢谢
to coolstr(占卜师) 这个4.3.11我也试过了,也是不行的! 这个问题折腾我几天了,在网上查了很多资料,对着PHP手册上安装,还是一样不行 :(
在IIS6中安装我以前在win2000中正常使用的php_installer不成功。我的解决办法:
下载一个新一点点的php安装程序。
附:
下载地址:http://cn.php.net/get/php-4.3.11-installer.exe/from/a/mirror
在Dreamweaver中打开d:\cscsystem\index.php,说该页无法显示
但直接在IE里输入http://127.0.0.1/cscsystem,会以目录结构显示
点击下面含有.PHP的文件,就显示:
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.俺E文不好,看不太懂,烦请各位指教
谢谢
这个4.3.11我也试过了,也是不行的!
这个问题折腾我几天了,在网上查了很多资料,对着PHP手册上安装,还是一样不行
:(
在“主目录”(Home Directory),“虚拟目录”(Virtual Directory)或者“目录”(Directory)标签栏中,点击“配置”(Configuration)按钮,然后选择“应用程序映射”(App Mappings)标签栏。 点击“添加”(Add)按钮,在“可执行文件”(Executable)框中输入:c:\php\php.exe(假定你将 PHP 解压缩到了 c:\php\)。 在“文件后缀”(Extension)框中输入你要使用的 PHP 后缀。'Method exclusions' 空着,选中“脚本引擎”(Script engine)。你也可以选中“检查文件是否存在”(check that file exists)- 略微损失一点性能,IIS 会先检查脚本文件是否存在。这样会输出 404 的错误信息而不是 PHP 没有输出任何数据的 cgi 错误。 对于其它你想使用的 PHP 后缀重复以上两个步骤。通常使用的有 .php 和 .phtml,对于一些老的程序还需要 .php3。 设置适当的安全级别(在Internet Service Manager 中完成)。如果你使用了 NTFS,还需要在 php.exe 所在的目录中给 I_USR_ 用户加上“执行”的权限。
如果你选择ISAPI模块,按照以下步骤:
如果你不用 PHP 进行 HTTP 认证的话,你可以(也应该)跳过这一步。在 ISAPI Filters 中,加入一个新的 ISAPI filter。用 PHP 作为过滤器的名字,并且提供 php4isapi.dll 所在的路径。 在“主目录”(Home Directory)中点击“配置”(Configuration)按钮,在应用程序映射(Application Mappings)中添加一个新的条目。用 php4isapi.dll 的路径作为可执行文件(Executable),用 .php 作为文件后缀,选中“脚本引擎”(Script Engine),而 'Method exclusions' 为空。 完全停止 IIS 服务(NET STOP iisadmin) 重新启动IIS服务(NET START w3svc)