LARAVEL默认页面没有加载 - 错误324 - ERR_EMPTY_RESPONSE [英] LARAVEL default page not loading - Error 324 - ERR_EMPTY_RESPONSE

查看:727
本文介绍了LARAVEL默认页面没有加载 - 错误324 - ERR_EMPTY_RESPONSE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

+Apache2
+PHP5.5
+Laravel4

安装laravel后,我去的http://本地主机和铬给了我一个 ERR_EMPTY_RESPONSE 错误。

After installing laravel, I go to http://localhost and chrome gives me an ERR_EMPTY_RESPONSE error.

如果我在公共文件夹中创建一个文件index2.php刚刚回声你好,它工作正常!

If I create in the public folder an index2.php file that just echo "hello", it works fine!

每当我尝试访问本地主机,这样一行在Apache日志增加:

Everytime I try to access localhost, a line like this is added in the Apache's log:

[星期六14年7月26日:38:37.083511 2014年] [核心:声明] [PID 9562] AH00051:
  孩子的pid 10025退出信号分割故障(11),可能的核心转储
  在/ etc / apache2的

[Sat Jul 26 14:38:37.083511 2014] [core:notice] [pid 9562] AH00051: child pid 10025 exit signal Segmentation fault (11), possible coredump in /etc/apache2

此崩溃发生:

  • http://s13.postimg.org/9eboxt8t3/screenshot.jpg
  • http://s11.postimg.org/tadttjdzn/screenshot2.jpg

这是我的conf文件:

These are my conf files:

apache2.conf

apache2.conf

<Directory /servidor/show/public>
    AllowOverride All
    allow from all
    Options +Indexes
    Require all granted
</Directory>

000-default.conf

000-default.conf

<VirtualHost *:80>
    DocumentRoot "/servidor/show/public"
    ServerName tadflex.dev
    ServerAlias tadflex.dev

    <Directory "/servidor/show/public">
        AllowOverride All
        allow from all
        Options +Indexes
        Require all granted
    </Directory>
</VirtualHost>

的.htaccess

.htaccess

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On
    RewriteBase /public/

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

我已经在过去2天尝试尽我的计算器威胁发现......但没有任何帮助。

I've been for the last 2 days trying to do everything I found in stackoverflow threats... but nothing helped.

我曾尝试重新安装Apache,但没有奏效。

I have tried re-installing apache but it didn't work.

你有没有什么线索可回事?

Do you have any clue what may be going on?

感谢

推荐答案

我在Chrome有完全相同的错误和一个无法打开网页在Safari。

I had exactly the same error in chrome and a "can't open page" in Safari.

通过引导code去了,发现了装载compiled.php是原因。该文件有它的一些错误。

Went through the bootstrap code and found out that loading the compiled.php was the cause. The file had some errors in it.

由于PHP工匠优化--force没有帮助(重建文件)我只是注释掉了它的负荷在autoload.php。

As "php artisan optimize --force" didn't help (rebuilt the file) I just commented out the loading of it in autoload.php.

可能无法解决的根本原因,但至少可以帮助上手laravel。

Might not solve the root cause but at least help to get started with laravel.

这篇关于LARAVEL默认页面没有加载 - 错误324 - ERR_EMPTY_RESPONSE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆