臭名昭着的Apache错误“父:子进程退出状态为3221225477”

时间:2011-08-08 13:04:11

标签: php apache2 xampp

我已经阅读了一些与臭名昭着的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 for Windows 1.5.4)运行旧的XAMPP版本并使用Doctrine ORM(是的,我知道Doctrine需要PHP 5.2.3 +)。

2 个答案:

答案 0 :(得分:2)

我在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中发生这种情况。

干杯

T恤

答案 1 :(得分:2)

在我的情况下,它是php扩展APC(php_apc.dll,3.1.10-5.4-vc9-x86,threadsafe),导致错误。

我使用XAMPP 1.8.2和PHP 5.4.19以及Apache 2.4.4

由于它也可能是由另一个扩展引起的,因此从xampp发行版中恢复原始php.ini可能是一个很好的起点。如果这个工作正常,请尝试逐行更改为所需的配置(从扩展名列表开始)。