我已经阅读了一些与臭名昭着的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).
解决方法:
我在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恤