简体   繁体   English

fastCgi 请求超时与 PHP max_execution_time

[英]fastCgi request timeout vs PHP max_execution_time

I'm running PHP on IIS 7.5 in a Windows Server 2008 machine.我在 Windows Server 2008 机器上的 IIS 7.5 上运行 PHP。

Currently my fastCgi request timeout is set to 90 seconds in IIS.目前我的fastCgi request timeout在 IIS 中设置为 90 秒。

But the max_execution_time in php.ini is set to 30.但是php.inimax_execution_time设置为 30。

What would happen in that case?在那种情况下会发生什么? Will the script crash but the request be kept in the requests queue until it finishes once it reaches 90 seconds ?脚本是否会崩溃但请求会保留在请求队列中,直到达到 90 秒后完成?

在此处输入图片说明

  1. Put the same value on both.将相同的值放在两者上。 Or the max of your multi-site config :或者您的多站点配置的最大值:

  2. After, in the main php.ini, you can add之后,在主php.ini中,你可以添加

[PATH=C:/inetpub/website1.com/] [路径=C:/inetpub/website1.com/]

max_execution_time = 60最大执行时间 = 60

[PATH=C:/inetpub/website2.com/] [路径=C:/inetpub/website2.com/]

max_execution_time = 200最大执行时间 = 200

  1. After that you can verify with phpinfo function : Create a PHP file with the following text :之后,您可以使用 phpinfo 功能进行验证:创建一个包含以下文本的 PHP 文件:

Open the page in browser and find :在浏览器中打开页面,找到: 在此处输入图片说明

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

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