简体   繁体   English

Laravel 应用程序在 vesta cp 上托管时显示空白页面

[英]Laravel app showing blank page when hosted on vesta cp

I have deployed a locally working laravel app as a subdomain on CentOS vesta control panel, but when i access any route aside the "/" route(which is the landing page), i get a blank page with a text "error" on it.我已经在 CentOS vesta 控制面板上部署了一个本地工作的 laravel 应用程序作为子域,但是当我访问除“/”路由(这是登录页面)之外的任何路由时,我得到一个空白页面,上面有一个文本“错误” .

Note: i have configured the httpd DocumentRoot in "home/user/conf/web/subdomain.conf.httpd"注意:我已经在“home/user/conf/web/subdomain.conf.httpd”中配置了 httpd DocumentRoot

I checked the logs and nothing is written there, i don't get no http error, but just the text "error" on the page.我检查了日志,那里没有写任何东西,我没有收到 http 错误,而只是页面上的文本“错误”。 Please, how do i solve this?请问,我该如何解决这个问题?

  1. please check that you're using the right php version.请检查您使用的是正确的 php 版本。
  2. run this command chmod -R o+w storage运行这个命令 chmod -R o+w storage

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM