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

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

问题描述

+Apache2
+PHP5.5
+Laravel4

安装 Laravel 后,我转到 http://localhost 并且 chrome 给我一个 ERR_EMPTY_RESPONSE 错误.

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

如果我在公共文件夹中创建一个 index2.php 文件,它只回显hello",它就可以正常工作!

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

每次尝试访问 localhost 时,Apache 的日志中都会添加这样一行:

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

[Sat Jul 26 14:38:37.083511 2014] [core:notice] [pid 9562] AH00051:child 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

并且这个崩溃发生了:

这些是我的配置文件:

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

<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 天我一直在尝试做我在 stackoverflow 威胁中发现的所有事情……但没有任何帮助.

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.

你知道会发生什么吗?

谢谢

推荐答案

你好尝试增加你的 .htaccess 文件的内存

Hello try to increase the memory of your .htaccess file

php_value memory_limit 128M

php_value memory_limit 128M

选项 - 多视图

    php_value upload_max_filesize 500M
    php_value post_max_size 1000M
    php_value memory_limit 128M

RewriteEngine On

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]

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

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

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