Laravel迁移显示空白页,没有调试屏幕 [英] Laravel Migration Showing Blank Page, No Debug Screen

查看:345
本文介绍了Laravel迁移显示空白页,没有调试屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Laravel一个站点的工作完美的罚款在这里:

I have a site in Laravel that's working perfectly fine here:

http://beta.modernassemb.ly

但是当我尝试将其移动到:

but when I try and move it to:

http://modernassemb.ly ,它只是显示一个空白的屏幕(一切是一样的)

http://modernassemb.ly, it just shows a blank screen (everything is the same)

我什至不知道如何去调试这一点,因为标准的调试屏幕不上来。错误日志只是表明:

I'm not even sure how to go about debugging this, as the standard debug screen doesn't come up. The error log just shows:

[周一6月16日0时36分56秒2014年] [错误] [客户222.239.78.246]文件不存在:/var/www/198.211.105.63

当IP 198.211.105.63 是网站的IP地址。

Where the IP 198.211.105.63 is the IP of the site.

当我回声index控制器声明,他们出现,但是模板/意见没有明显的呈现。

When I echo statements in the index controller, they show up, but the templates/views aren't obviously rendering.

在服务器上的路径是:

工作 /var/www/beta.modernassemb.ly/public_html

不工作: /var/www/modernassemb.ly/public_html

我试过 /var/www/198.211.105.63 点设置一个软链接所以 /var/www/modernassemb.ly 无济于事。

I tried setting up a softlink so /var/www/198.211.105.63 points to /var/www/modernassemb.ly to no avail.

这是我的Apache配置文件看起来是这样的:

And this is what my apache config file looks like:

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName modernassemb.ly
        VirtualDocumentRoot /var/www/%0/public_html
        ServerAlias *.modernassemb.ly

        DocumentRoot /var/www/

        RewriteEngine on
        RewriteCond %{HTTP_HOST} ^www\.modernassemb\.ly$ [NC]
        RewriteRule ^(.*)$ http://modernassemb.ly$1 [R=301,L]


        <Directory />
                Options FollowSymLinks
                AllowOverride all
        </Directory>
        <Directory "/var/www">
                Options -Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

请帮忙,因为这是推动我疯了!

Please help as this is driving me crazy!!

推荐答案

在Laravel 5个新的文件结构的存储/ 文件夹外的应用/ 文件夹

In Laravel 5 new file structure storage/ folder is outside the app/ folder

$ sudo chmod -R o+w storage/

这篇关于Laravel迁移显示空白页,没有调试屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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