[英]I can't run any PHP file on localhost (HTTP 404.3 error using IIS)
I am attempting to set up a localhost testing server through IIS, but for the life of me I have been unable to get it working. 我试图通过IIS设置本地主机测试服务器,但是我一生中一直无法使其正常运行。 I have my project folder in the localhost directory:
我的项目文件夹位于localhost目录中:
C:\inetpub\wwwroot
The IIS splash screen works when I just try to go to "localhost", but when I run any PHP file I just get the error: 当我尝试转到“ localhost”时,IIS初始屏幕可以工作,但是当我运行任何PHP文件时,我都会收到错误消息:
"HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.".
I was first trying with my project, but then I tried a simple echo script which still gives me the same error, so something must be wrong with how my PHP is configured. 我最初是在尝试我的项目,但是后来我尝试了一个简单的回显脚本,该脚本仍然给我同样的错误,因此,PHP的配置一定存在问题。 The most recent solution I have tried is this one IIS 8 Wont run PHP?
我尝试过的最新解决方案是此IIS 8无法运行PHP吗? , but this did not work.
,但这没有用。
Is there a surefire way to fix this? 有确保解决此问题的方法吗? I have been looking at it for HOURS.
我一直在看HOURS。
I am running Windows 8.1 64-bit. 我正在运行Windows 8.1 64位。 Has anyone else ran into this problem and managed to fix it?
还有其他人遇到过这个问题并设法解决吗?
Let me know if you need any more information, I really need to get this testing server up :/ 让我知道是否需要更多信息,我真的需要启动此测试服务器:/
did you setup iis correctly? 您是否正确设置了iis? because you have to care with somethings, so, give a look in the follow link HOW TO INSTALL AND CONFIGURE IIS 8 ON WINDOWS 8
因为您必须关心某些事情,因此,请在以下链接中进行操作如何在WINDOWS 8上安装和配置IIS 8
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.