Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 生产artisan配置:缓存上没有错误输出的空白页_Php_Laravel_Configuration_Laravel Artisan - Fatal编程技术网

Php 生产artisan配置:缓存上没有错误输出的空白页

Php 生产artisan配置:缓存上没有错误输出的空白页,php,laravel,configuration,laravel-artisan,Php,Laravel,Configuration,Laravel Artisan,我有一个laravel项目,当我部署到我的生产站点时,只要我在构建过程中不调用php artisan config:cache,它就可以正常工作 奇怪的是,我的应用程序仍然显示登录页面,但一旦我登录,每个页面都是空白的,任何日志中都没有输出 我已经试过了 我的bootstrap/cache文件夹与storage/文件夹一样拥有777个权限。在我搜索过的其他帖子中,最推荐的修复方法是什么 逐个运行我的构建文件添加命令,直到问题再次出现,并推断是config:cache导致问题 检查php fpm日

我有一个laravel项目,当我部署到我的生产站点时,只要我在构建过程中不调用
php artisan config:cache
,它就可以正常工作

奇怪的是,我的应用程序仍然显示登录页面,但一旦我登录,每个页面都是空白的,任何日志中都没有输出

我已经试过了

我的
bootstrap/cache
文件夹与
storage/
文件夹一样拥有777个权限。在我搜索过的其他帖子中,最推荐的修复方法是什么

逐个运行我的构建文件添加命令,直到问题再次出现,并推断是
config:cache
导致问题

检查php fpm日志 检查laravel日志 检查nginx日志

我使用的是Laravel5.8,但这个问题也出现在5.7中

作曲部门

"davejamesmiller/laravel-breadcrumbs": "5.x",
"doctrine/dbal": "^2.9",
"fideloper/proxy": "~4.0",
"fzaninotto/faker": "~1.4",
"igaster/laravel-theme": "^2.0",
"intervention/image": "^2.4",
"laravel/cashier": "~9.0",
"laravel/framework": "5.8.*",
"laravel/passport": "^7.0",
"laravel/tinker": "~1.0",
"league/flysystem-aws-s3-v3": "~1.0",
"league/flysystem-cached-adapter": "~1.0",
"owen-it/laravel-auditing": "^9.0",
"setasign/fpdi-fpdf": "^2.0",
"setasign/fpdi-tcpdf": "^2.0",
"spatie/laravel-permission": "^2.12",
"spatie/laravel-sluggable": "^2.1"
chmod -R 0777 storage/
composer install --prefer-dist --no-dev --no-interaction
php artisan migrate
php artisan route:cache
php artisan storage:link
php artisan view:clear
php artisan cache:clear
php artisan config:cache
生成命令

"davejamesmiller/laravel-breadcrumbs": "5.x",
"doctrine/dbal": "^2.9",
"fideloper/proxy": "~4.0",
"fzaninotto/faker": "~1.4",
"igaster/laravel-theme": "^2.0",
"intervention/image": "^2.4",
"laravel/cashier": "~9.0",
"laravel/framework": "5.8.*",
"laravel/passport": "^7.0",
"laravel/tinker": "~1.0",
"league/flysystem-aws-s3-v3": "~1.0",
"league/flysystem-cached-adapter": "~1.0",
"owen-it/laravel-auditing": "^9.0",
"setasign/fpdi-fpdf": "^2.0",
"setasign/fpdi-tcpdf": "^2.0",
"spatie/laravel-permission": "^2.12",
"spatie/laravel-sluggable": "^2.1"
chmod -R 0777 storage/
composer install --prefer-dist --no-dev --no-interaction
php artisan migrate
php artisan route:cache
php artisan storage:link
php artisan view:clear
php artisan cache:clear
php artisan config:cache

您能够访问index.php吗

按照Laravel生命周期顺序进行调试:

  • index.php
  • bootstrap app.php
  • Http/Kernel.php
  • 应用服务提供商

  • 你用的是什么服务?(Apache或nginx)。请到处查看他们的日志。我在开发环境中遇到了这个问题,错误出现在我的php fpm日志中。nginx中没有任何内容记录php fpm日志中没有任何内容
    storage/logs/laravel.log中也没有任何内容?您的
    存储/日志
    文件夹可写吗?以及其中的日志文件?尝试在
    .env
    文件中设置
    APP\u DEBUG=true
    ,查看
    php artisan config:clear
    是否有任何作用。@AdamCopley:您可以共享正在与sequence一起使用的构建命令吗。