php - 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/
我已经尝试了所有这些步骤,但仍然面临同样的问题,如果有人能指导我完成这个,我将不胜感激。
解决方案
我认为这是许可问题
sudo chmod -R 777 your_project_directory/storage
和
sudo chown -R www-data:www-data you_project_directory
推荐阅读
- firefox - 从提取的 Html 数据中的 ID 标签中提取值
- python - 为什么在 Python Selenium click() 不工作但 send_keys('\n') 工作?
- dns - 在什么情况下,DNS 主文件可以包含 CRLF?
- c# - 找不到类型或命名空间名称“Pr”(您是否缺少 using 指令或程序集引用?)
- wordpress - wp_login_url() 返回相对 URL 而不是完整 URL
- postgresql - Postgresql : Euclidian distance between array (in a json row) and an input array
- python - Rdd lambda function confusion around rows vs columns
- excel - 如何隐藏将 .txt 文件保存到数据库窗口 Excel 2016
- java - 使用 web.xml 的 Jetty servlet 映射不起作用
- ios - 了解旧 iOS 中暗模式的 SystemColors