首页 > 解决方案 > Laravel 页面不断加载

问题描述

我已经从 cpanel 下载了我的 laravel 应用程序(职业)并将其放在 htdocs 文件夹中,当我浏览localhost/careers/login页面时不断开始加载。日志文件夹中没有报告错误。

我已经尝试了所有可能的命令和步骤,但仍然是同样的问题。

.env 文件:

APP_NAME="VTBPO HRM"
APP_ENV=local
APP_KEY=base64:zipDoVJPTWnMlivfnxyp6MTeqE2UanRCEaXZsWwm7pA=
APP_DEBUG=true
APP_URL=localhost

我遵循的命令/步骤:

    php artisan config:cache // clear config cache
    php artisan config:clear // clear config cache
    php artisan cache:clear // clear cache
    php artisan route:cache // clear route cache
    php artisan view:clear // clear view cache

    chmod 777 -R storage/
    php -S localhost:8000 -t public/

我已经尝试了所有这些步骤,但仍然面临同样的问题,如果有人能指导我完成这个,我将不胜感激。

标签: phplaravel

解决方案


我认为这是许可问题

sudo chmod -R 777 your_project_directory/storage 

sudo chown -R www-data:www-data you_project_directory

推荐阅读