我有一个 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/