duanbei6427 2014-08-27 21:35
浏览 591
已采纳

我无法在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 :/

  • 写回答

1条回答 默认 最新

  • dongwen7813 2014-08-27 21:44
    关注

    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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作