apache - 意外连接重置 : A PHP or an Apache issue?

标签 apache connection php httpd.conf

我有一个 PHP 脚本每次都停在同一个地方并且我的浏览器报告:

The connection to the server was reset while the page was loading.

我已经在 Firefox 和 IE 上测试过,同样的事情发生了。所以,我猜这是一个 Apache/PHP 配置问题。以下是我设置的一些内容。

PHP.ini

max_execution_time = 300000 
max_input_time = 300000
memory_limit = 256M 

Apache (httpd.conf)

Timeout 300000
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 0

以上是否正确?是什么原因导致的,我可以设置什么?

I am running PHP (5.2.12.12) as a module on Apache (2.2) on a Windows Server 2003.

这很可能是 Apache 或 PHP 问题,因为所有浏览器都执行相同的操作。我认为该脚本运行正好 10 分钟(600 秒)。

最佳答案

我有一个类似的问题 - 结果是 apache2 出现了段错误。段错误的原因是 Ubuntu 10.04 LTS 上 5.3.2-1ubuntu4.14 的 php5-xdebug。删除 xdebug 解决了这个问题。

关于apache - 意外连接重置 : A PHP or an Apache issue?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1964554/

相关文章:

c# - NHibernate 没有连接到 sql server

java - 异常,以及在重置连接时如何最好地重试?

php - Paypal IPN 示例代码不起作用

apache - 随机 SSL 日志 "AH01998: Connection closed to child with abortive shutdown"apache

java - NoClassDefFound错误: org/apache/xml/serialize/OutputFormat

apache - 接收来自 Woopingbot/1.1 的请求

http - 检查http连接vbscript

php - 创建表 "alias",并更改表类型

Windows 上的 PHP_BINDIR 不正确?

java - 部署WAR文件时的Tomcat 7.0.52 JNDI错误