Laravel 5.7 Page可以正常显示,但在底部显示500错误

时间:2019-06-28 05:53:44

标签: laravel laravel-5.7

我有一个Laravel 5.7网站。它将所有页面和路由呈现得很好,但是在底部显示以下错误:

  

500糟糕,我们的服务器出了点问题。

所有视图均由共享的footer.blade.php文件关闭,该文件已用html正确关闭。该服务器是具有 Ubuntu 18.04 Apache2 Php 7.2

LAMP服务器

当我查看浏览器生成的HTML时,Laravel似乎在代码底部插入了500页。

当我使用/ body和/ html标签关闭html时,它会自动插入doctype html html lang =“ en”标题错误标题标签以及500页的其余部分。

enter image description here

1 个答案:

答案 0 :(得分:0)

这是文件权限问题

因此,通过授予0777Storage目录的访问权限,可以对其进行修复

以下命令解决了该问题。

sudo chgrp -R www-data storage bootstrap/cache

sudo chmod -R ug+rwx storage bootstrap/cache
相关问题