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

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

阿帕奇(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)
  Server 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是段错误。该段错误的原因是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天全站免登陆