意外的连接重置:PHP或Apache问题? [英] Unexpected Connection Reset: A PHP or an Apache issue?

查看:205
本文介绍了意外的连接重置: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

上述是否正确?


我正在运行PHP(5.2.12.12)作为
模块在Windows
Server 2003上的Apache(2.2)。

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是segfaulting。原因的segfault是php5-xdebug为5.3.2-1ubuntu4.14在Ubuntu 10.04 LTS。删除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.

这篇关于意外的连接重置:PHP或Apache问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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