Laravel 4:@include导致Apache(httpd.exe)崩溃(在Windows上)


Laravel 4: @include causes Apache (httpd.exe) to crash (on Windows)

正如标题所说,有一个特定的@include()会导致Apache在执行时崩溃。

这是入罪代码,位于profile.php:中

<hr>
    @include('sections/userInformations', array('userOwner' => $profileUser, 'userVisitor' => $user))
<hr>

$profileUser$user来自PagesController.php:

public function getProfile($username) {
    return View::make('profile', array(
        'privacy' => Privacy::where('user', '=', $username)->first(),
        'profileUser' => User::where('username', '=', $username)->first(),
        'user' => Auth::user()
    ));
}

Apache error.log:

[Thu Apr 17 18:17:30.840838 2014] [mpm_winnt:notice] [pid 2536:tid 324] AH00428: Parent: child process 1716 exited with status 3221225725 -- Restarting.
[Thu Apr 17 18:17:31.146862 2014] [ssl:warn] [pid 2536:tid 324] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Apr 17 18:17:31.183859 2014] [mpm_winnt:notice] [pid 2536:tid 324] AH00455: Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.9 configured -- resuming normal operations
[Thu Apr 17 18:17:31.184859 2014] [mpm_winnt:notice] [pid 2536:tid 324] AH00456: Apache Lounge VC11 Server built: Nov 21 2013 20:13:01
[Thu Apr 17 18:17:31.184859 2014] [core:notice] [pid 2536:tid 324] AH00094: Command line: 'c:''xampp''apache''bin''httpd.exe -d C:/xampp/apache'
[Thu Apr 17 18:17:31.185859 2014] [mpm_winnt:notice] [pid 2536:tid 324] AH00418: Parent: Created child process 2904
[Thu Apr 17 18:17:31.627883 2014] [ssl:warn] [pid 2904:tid 396] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Apr 17 18:17:31.781898 2014] [ssl:warn] [pid 2904:tid 396] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Apr 17 18:17:31.819900 2014] [mpm_winnt:notice] [pid 2904:tid 396] AH00354: Child: Starting 150 worker threads.
[Thu Apr 17 18:17:33.170971 2014] [mpm_winnt:notice] [pid 2536:tid 324] AH00428: Parent: child process 2904 exited with status 3221225725 -- Restarting.
[Thu Apr 17 18:17:33.482989 2014] [ssl:warn] [pid 2536:tid 324] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Apr 17 18:17:33.520991 2014] [mpm_winnt:notice] [pid 2536:tid 324] AH00455: Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.9 configured -- resuming normal operations
[Thu Apr 17 18:17:33.520991 2014] [mpm_winnt:notice] [pid 2536:tid 324] AH00456: Apache Lounge VC11 Server built: Nov 21 2013 20:13:01
[Thu Apr 17 18:17:33.520991 2014] [core:notice] [pid 2536:tid 324] AH00094: Command line: 'c:''xampp''apache''bin''httpd.exe -d C:/xampp/apache'
[Thu Apr 17 18:17:33.522991 2014] [mpm_winnt:notice] [pid 2536:tid 324] AH00418: Parent: Created child process 2064
[Thu Apr 17 18:17:33.966015 2014] [ssl:warn] [pid 2064:tid 392] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Apr 17 18:17:34.120025 2014] [ssl:warn] [pid 2064:tid 392] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Thu Apr 17 18:17:34.159026 2014] [mpm_winnt:notice] [pid 2064:tid 392] AH00354: Child: Starting 150 worker threads.

PHP_ERROR_LOG为空。

事实上,有两个随之而来的崩溃。。。

尝试以下操作:

http://blog.codexpedia.com/apache-server/parent-child-process-exited-with-status-3221225725-restarting-on-xamp-apache/

httpd.conf:

<IfModule mpm_winnt_module>
    ThreadStackSize 8888888
</IfModule>

您的实际错误是[mpm_winnt:notice] [pid 2536:tid 324] AH00428: Parent: child process 2904 exited with status 3221225725 -- Restarting.

尝试搜索exited with status 3221225725。。。

这似乎是windows上的一个问题,尝试在apache配置文件的末尾添加以下内容:httpd.conf

<IfModule mpm_winnt_module>
   ThreadStackSize 8388608
</IfModule>

然后重新启动apache。