php – oauth-private.key不存在或不可读

发布时间:2022-04-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了php – oauth-private.key不存在或不可读脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
所以,我从BITbucket导入了另一个项目并尝试使用PHP artisan服务启动它,我总是得到这个错误

[LOGicException]                                                                   
  Key path "file:///VAR/www/htML/designviewer5/storage/oauth-PRivate.key" does not   
  exist or is not readable

我自己创建项目时没有收到此错误,我无法执行任何其他命令.我试过’PHP artisan key:generate’,并得到完全相同的错误.

我试过:作曲家更新,得到了这个:

Loading composer repositories with package information
Updating dePEndencies (including require-dev)
Package operations: 0 installs,1 update,0 removals
  - Updating spatie/laravel-permission (1.11.1 => 1.12.0) Downloading: 100%         
Writing lock file
Generating autoload files
> Illuminate\Foundation\ComposerScripts::postUpdate
> PHP artisan optimize


  [LogicException]                                                             
  Key path "file:///var/www/html/designviewer5/storage/oauth-private.key" doe  
  s not exist or is not readable                                               


Script PHP artisan optimize handling the post-update-cmd event returned with error code 1

任何人都知道如何解决它?谢谢!

解决方法

我认为这是由于Laravel Passport,你应该尝试以下命令:

PHP artisan passport:install

资料来https://laravel.com/docs/5.4/passport

脚本宝典总结

以上是脚本宝典为你收集整理的php – oauth-private.key不存在或不可读全部内容,希望文章能够帮你解决php – oauth-private.key不存在或不可读所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。