TVA*_*ren 0 php apache webserver apache2
我有一个PHP应用程序,它返回给我:
[Thu Oct 05 22:10:59.351244 2017] [proxy_fcgi:error] [pid 3733:tid 139869435164416] (70007)The timeout specified has expired: [client IPADDRESS HIDDEN:46777] AH01075: Error dispatching request to : (polling)
[Thu Oct 05 22:16:27.701213 2017] [proxy_fcgi:error] [pid 3732:tid 139869359630080] (70007)The timeout specified has expired: [client IPADDRESS HIDDEN:46988] AH01075: Error dispatching request to : (polling)
[Thu Oct 05 22:21:52.971235 2017] [proxy_fcgi:error] [pid 3733:tid 139869426771712] (70007)The timeout specified has expired: [client IPADDRESS HIDDEN:47055] AH01075: Error dispatching request to : (polling)
[Thu Oct 05 22:25:23.561216 2017] [proxy_fcgi:error] [pid 3732:tid 139869351237376] (70007)The timeout specified has expired: [client IPADDRESS HIDDEN:47115] AH01075: Error dispatching request to : (polling)
[Thu Oct 05 22:30:47.591237 2017] [proxy_fcgi:error] [pid 3733:tid 139869418379008] (70007)The timeout specified has expired: [client IPADDRESS HIDDEN:47321] AH01075: Error dispatching request to : (polling)
[Thu Oct 05 22:39:10.211214 2017] [proxy_fcgi:error] [pid 3733:tid 139869443557120] (70007)The timeout specified has expired: [client IPADDRESS HIDDEN:47407] AH01075: Error dispatching request to : (polling)
[Thu Oct 05 22:39:38.591259 2017] [proxy_fcgi:error] [pid 3733:tid 139869376415488] (70007)The timeout specified has expired: [client IPADDRESS HIDDEN:47412] AH01075: Error dispatching request to : (polling)
[Thu Oct 05 22:45:13.951238 2017] [proxy_fcgi:error] [pid 3733:tid 139869582505728] (70007)The timeout specified has expired: [client IPADDRESS HIDDEN:47615] AH01075: Error dispatching request to : (polling)
[Thu Oct 05 22:50:36.491214 2017] [proxy_fcgi:error] [pid 3732:tid 139869460342528] (70007)The timeout specified has expired: [client IPADDRESS HIDDEN:47668] AH01075: Error dispatching request to : (polling)
[Thu Oct 05 22:54:57.661219 2017] [proxy_fcgi:error] [pid 3733:tid 139869326059264] (70007)The timeout specified has expired: [client IPADDRESS HIDDEN:47726] AH01075: Error dispatching request to : (polling)
Run Code Online (Sandbox Code Playgroud)
我认为以上消息 - 以某种方式 - 连接到以下随机错误:
请注意,XMLHttpRequests(AJAX调用)来自同一个域,有时不会执行上述错误.但是,通常它们会执行吗?
从这个消息来自哪个脚本,我该如何解决?我只能想到一个可能超过默认最大执行时间的脚本,但是允许这个脚本运行更长时间,使用页面顶部的ini_set执行最长执行时间?
我不知道在哪里寻找以及如何解决这个问题
小智 9
我知道这个问题很老了,但是我在删除多个帖子时遇到了 WordPress 的这个问题,我发现很难找到解决方案,所以我(将来)为我自己写下这个问题,就像其他有同样问题的人一样。
对于 CentOS 8,确保您已安装 fast cgi 和可选的 php-fph
yum install mod_fcgid php-fpm
Run Code Online (Sandbox Code Playgroud)
然后如果没有 php-fpm 编辑:
vi /etc/httpd/conf.d/fcgid.conf
Run Code Online (Sandbox Code Playgroud)
添加行
FcgidIdleTimeout 1200
FcgidProcessLifeTime 1200
FcgidConnectTimeout 1200
FcgidIOTimeout 1200
Run Code Online (Sandbox Code Playgroud)
如果安装了 php-fpm 编辑/创建:
vi /etc/httpd/conf.modules.d/00-proxy_timeout.conf
Run Code Online (Sandbox Code Playgroud)
并添加行
Timeout 1200
ProxyTimeout 1200
Run Code Online (Sandbox Code Playgroud)
重新启动 php-fpm - 如果已安装且 httpd
将以下行添加到(httpd.conf或apache2.conf取决于您的系统)文件中:
Timeout 600
ProxyTimeout 600
Run Code Online (Sandbox Code Playgroud)
并重新启动apache
sudo /etc/init.d/apache2 restart
Run Code Online (Sandbox Code Playgroud)
小智 1
我不确定该错误,但很可能您的 PHP 代码应用程序花费的时间比配置的时间长得多。我建议使用 PHP 的 CLI 版本来解决此问题。
我可以肯定地说你的代码陷入了某个循环,尝试使用 PHP 的 CLI 版本,它肯定会有所帮助。
| 归档时间: |
|
| 查看次数: |
6257 次 |
| 最近记录: |