我读过一些与臭名昭著的 Apache 错误相关的问题和回复
Apache error [notice] Parent: child process exited with status 3221225477 — Restarting
但到目前为止,没有什么可以帮助我。我想问的是,如果我使用 Linux 版本,脚本是否会因为同样的原因而导致 Apache 崩溃?
顺便说一句,如果有人对我的案例有任何建议,这里是 Apache 的error.log
[Mon Aug 08 14:31:44 2011] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Mon Aug 08 14:31:44 2011] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Mon Aug 08 14:31:44 2011] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Mon Aug 08 14:31:44 2011] [notice] Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_autoindex_color PHP/5.1.6 configured -- resuming normal operations
[Mon Aug 08 14:31:44 2011] [notice] Server built: Aug 13 2006 19:16:43
[Mon Aug 08 14:31:44 2011] [notice] Parent: Created child process 4364
[Mon Aug 08 14:31:45 2011] [notice] Child 4364: Child process is running
[Mon Aug 08 14:31:45 2011] [notice] Child 4364: Acquired the start mutex.
[Mon Aug 08 14:31:45 2011] [notice] Child 4364: Starting 250 worker threads.
[Mon Aug 08 14:31:45 2011] [notice] Child 4364: Starting thread to listen on port 8088.
[Mon Aug 08 14:31:45 2011] [notice] Child 4364: Starting thread to listen on port 8086.
我不明白为什么在文件系统中移动 dll 可以解决大多数问题,并且相关问题中有关移动库的所有建议对我不起作用。
我正在使用 PHP 5.1.6 运行旧的 XAMPP 版本(XAMPP for Windows 1.5.4)并使用 Doctrine ORM(是的,我知道 Doctrine 需要 PHP 5.2.3+)。
我刚刚在 WAMP 安装中遇到了同样的问题。我追踪到了我自己的一些垃圾代码。我有一个方法调用自身。
这是一个例子:-
<?php
echo "Welcome to stupid class!";
class stupid_class {
public $example_data;
function stupid_function($Data) {
self::stupid_function($Data);
if($Data=="Hello") return true;
else die("Incorrect data passed through.".$Data."<br />");
}
}
$myClass = new stupid_class();
$myvalue = $myClass->stupid_function("Hello");
?>
我知道这不是优秀代码的理想示例(实际上是一个拼写错误),但我预计在收到“连接已重置”消息之前会抛出一些错误。
所以我想答案是,检查所有方法以确保您不会无限地调用某个方法。
我希望这可以帮助人们弄清楚为什么 PHP、Apache 会发生这种情况。
Cheers
Tee
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)