IIS7 + PHP + HTTP POST =挂起? [英] IIS7 + PHP + HTTP POST = hang?

查看:283
本文介绍了IIS7 + PHP + HTTP POST =挂起?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过Windows Web App Gallery在带有IIS7的Windows 7 x64计算机上安装了PHP。一切似乎都很好,一个简单的phpinfo()页面就像你想象的那样。但是,每当我对PHP页面发出POST请求时,请求就会永久挂起。请参阅下面非常简单的测试页面...它甚至没有任何动态内容。

I installed PHP on a Windows 7 x64 machine with IIS7 via Windows Web App Gallery. Everything seemed to go fine, and a simple phpinfo() page works like you would think. However, whenever I do a POST request to a PHP page, the request just hangs forever. See the very simple test page below... It doesn't even have any dynamic content in it.

我浪费了太多时间。有任何想法吗?非常感谢!

I've wasted way too much time on this. Any ideas? Thanks a bunch!

page.php:

<html>
 <body>
  <form action="page.php" method="post">
   <textarea name="apa"></textarea>
   <input type="submit" value="ok" />
  </form>
 </body>
</html>

处理程序映射:

<handlers>
        <add name="PHP_via_FastCGI" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\PHP\php-cgi.exe" resourceType="Either" requireAccess="Script" />
</handlers>


推荐答案

经过多次故障排除后,原来这条线路在我的web.config文件导致了问题:

After much troubleshooting, it turned out that this line in my web.config file was causing the issue:

<trace enabled="true" localOnly="false" pageOutput="false" requestLimit="40" />

这篇关于IIS7 + PHP + HTTP POST =挂起?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆