意外的连接重置:PHP 或 Apache 问题?
我有一个 PHP 脚本,每次都停在同一个地方,我的浏览器报告:
I have a PHP script that keeps stopping at the same place every time and my browser reports:
与服务器的连接已重置在页面加载时.
The connection to the server was reset while the page was loading.
我在 Firefox 和 IE 上对此进行了测试,同样的事情发生了.所以,我猜这是一个 Apache/PHP 配置问题.以下是我设置的几项内容.
I have tested this on Firefox and IE, same thing happens. So, I am guessing this is an Apache/PHP config problem. Here are few things I have set.
PHP.ini
max_execution_time = 300000
max_input_time = 300000
memory_limit = 256M
Apache (httpd.conf)
Apache (httpd.conf)
Timeout 300000
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 0
以上说的对吗?是什么原因造成的?我可以设置什么?
Are the above correct? What can be causing this and what can I set?
我正在运行 PHP (5.2.12.12) 作为Windows 上 Apache (2.2) 上的模块服务器 2003.
I am running PHP (5.2.12.12) as a module on Apache (2.2) on a Windows Server 2003.
这很可能是 Apache 或 PHP 问题,因为所有浏览器都在做同样的事情.我认为脚本运行正好 10 分钟(600 秒).
It is very likely this is an Apache or PHP issue as all browsers do the same thing. I think the script runs for exactly 10 mins (600 seconds).
推荐答案
我遇到了类似的问题 - 结果是 apache2 出现了段错误.段错误的原因是 Ubuntu 10.04 LTS 上 5.3.2-1ubuntu4.14 的 php5-xdebug.删除 xdebug 解决了这个问题.
I had a similar issue - turns out apache2 was segfaulting. Cause of the segfault was php5-xdebug for 5.3.2-1ubuntu4.14 on Ubuntu 10.04 LTS. Removing xdebug fixed the problem.
相关文章