Laravel-内部服务器错误并禁止访问

时间:2018-10-18 16:58:57

标签: laravel apache laravel-5.1 file-permissions chmod

我使用cPanel转移工具将网站从一台服务器复制到另一台服务器,但是之后,我得到了Internal Server Error ...

要解决该问题,我运行命令:

sudo chown -R perica:perica /home/perica/public_html/

之后:

sudo find /home/perica -type f -exec chmod 664 {} \; 

sudo find /home/perica -type d -exec chmod 775 {} \;

但是我又遇到了同样的错误。

我也尝试sudo find /home/perica -type f -exec chmod 700 {} \;,但随后出现错误

 Forbidden
You don't have permission to access /admin on this server.
Server unable to read htaccess file, denying access to be safe

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

此外,我的存储文件夹和引导权限为777。

出什么问题了?我花了2天的时间解决了这个问题,但没有成功!请帮助!

更新:我删除了.htaccess文件,现在我看到了Laravel文件夹结构,但是当我再次将浏览器导航到domain.com/public文件夹时,出现了错误。

0 个答案:

没有答案
相关问题