我无法在localhost上运行任何PHP文件(使用IIS时出现HTTP 404.3错误)

问题描述:

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. I have my project folder in the localhost directory:

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:

 "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. The most recent solution I have tried is this one IIS 8 Wont run PHP?, but this did not work.

Is there a surefire way to fix this? I have been looking at it for HOURS.

I am running Windows 8.1 64-bit. 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 :/

我正在尝试通过IIS设置localhost测试服务器,但对于我的生活,我一直无法 让它工作。 我的项目文件夹位于localhost目录中: p>

  C:\ inetpub \ wwwroot 
  code>  pre> 
 
 

IIS 当我试图转到“localhost”时,启动画面工作,但是当我运行任何PHP文件时,我只得到错误: p>

 “HTTP错误404.3  - 未找到该页面 由于扩展配置,您请求无法提供。如果页面是脚本,请添加处理程序。如果要下载文件,请添加MIME映射。“。
  code>  pre> 
 \  n 

我是第一次尝试使用我的项目,但后来我尝试了一个简单的echo脚本仍然给我同样的错误,所以我的PHP配置方式一定有问题。 我尝试过的最新解决方案是 IIS 8不运行PHP?,但是 这不起作用。 p>

有没有一种可靠的解决方法? 我一直在寻找它的时间。 p>

我正在运行Windows 8.1 64位。 有没有其他人遇到这个问题并设法修复它? p>

如果您需要更多信息,请告诉我,我真的需要启动此测试服务器:/ p> div>

did you setup iis correctly? 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