问题描述
我已经阅读了一些与臭名昭著的 Apache 错误相关的问题和回复
I've read some questions and responses related to the infamous Apache error
Apache error [notice] Parent: child process exited with status 3221225477 — Restarting
但到目前为止,没有什么可以帮助我.我想问的是,如果我使用的是 Linux 版本,脚本会不会因为同样的原因导致 Apache 崩溃?
But nothing could help me so far. What I'm asking to you is if I used a Linux version, could the script crash Apache for the same reason?
顺便说一句,如果有人对我的案例有任何建议,这里是 Apache 的 error.log
By the way if anyone has any suggestion for my case here is Apache's 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 可以解决大多数问题,而相关问题中关于移动库的所有建议对我都不起作用.
I can't understand why moving dlls around the filesystem solve most problems and all the suggestions in the related questions which were about moving libraries didn't work for me.
我正在使用 PHP 5.1.6(XAMPP for Windows 1.5.4)运行旧版 XAMPP,并使用 Doctrine ORM(是的,我知道 Doctrine 需要 PHP 5.2.3+).
I'm running an old XAMPP release with PHP 5.1.6 (XAMPP for Windows 1.5.4) and working with Doctrine ORM (Yes, I'm aware that Doctrine requires PHP 5.2.3+).
推荐答案
就我而言,是 php 扩展 APC (php_apc.dll, 3.1.10-5.4-vc9-x86, threadsafe) 导致了错误.
In my case it was the php extension APC (php_apc.dll, 3.1.10-5.4-vc9-x86, threadsafe), which caused the error.
我使用 XAMPP 1.8.2 和 PHP 5.4.19 和 Apache 2.4.4
I used XAMPP 1.8.2 with PHP 5.4.19 and Apache 2.4.4
由于它也可能是由另一个扩展引起的,因此从 xampp 发行版中恢复原始 php.ini 可能是一个很好的起点.如果此方法运行良好,请尝试将其逐行更改为所需的配置(从扩展列表开始).
Since it could be caused by another extension as well, it might be a good starting point to restore the original php.ini from the xampp distribution. If this one works well, try to change it line by line to your desired configuration (starting with the extension list).
这篇关于臭名昭著的 Apache 错误“父:子进程退出,状态为 3221225477"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!