LARAVEL默认页面没有加载

编程入门 行业动态 更新时间:2024-10-20 00:36:10
本文介绍了LARAVEL默认页面没有加载 - 错误324 - ERR_EMPTY_RESPONSE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 +Apache2 +PHP5.5 +Laravel4

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

After installing laravel, I go to 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

和此崩溃发生:

  • s13.postimg/9eboxt8t3/screenshot.jpg
  • s11.postimg/tadttjdzn/screenshot2.jpg
  • s13.postimg/9eboxt8t3/screenshot.jpg
  • s11.postimg/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默认页面没有加载

本文发布于:2023-10-11 22:57:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1483075.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:加载   页面   LARAVEL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!