简体   繁体   English

IIS 6无法将index.php设置为默认值

[英]IIS 6 Cannot set index.php to default

In IIS I have gone to the Documents Tab and added index.php to the top of the default list and restarted IIS but I get a page cannot be displayed. 在IIS中,我转到了“文档”选项卡,并将index.php添加到默认列表的顶部,并重新启动了IIS,但无法显示页面。

Please let me know if there is something I am missing. 请让我知道我是否缺少什么。

When installing PHP, I read instructions to set the Execute permissions to Scripts only. 在安装PHP时,我阅读了将“执行”权限设置为“仅脚本”的说明。 Changing it to Scripts and Executables got the page to redirect to index.php as default. 将其更改为“脚本和可执行文件”后,页面默认重定向到index.php。 I'm not sure if it's the content of my index.php or if needed in general, but it works. 我不确定这是我的index.php的内容还是一般需要的内容,但是它可以工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM