Laravel Forge:file_put_contents():无法打开流:权限被拒绝


Laravel Forge: file_put_contents(): failed to open stream: Permission denied

所以我刚刚开始使用Laravel Forge,并部署了我的第一个应用程序。部署成功,一切正常。但如果你点击了应用程序uri,它就无法加载管理员登录网站。

Filesystem.php中的ErrorException第75行:

file_put_contents(/9186b8608ec5b5727b9bcb20c6f3759):无法打开流:权限被拒绝

在Filesystem.php的第75行

在HandleExceptions->handleError('2','file_put_contents(/9186b8608ec5b5727b9bcb2f0c6f3759):无法打开流:权限被拒绝','/home/forge/bmm.com/vendor/laraavel/framework/src/IIlluminate/Filesystem/Filesystem.php','75',array

如何设置正确的权限?谢谢你的回答。

请尝试php artisan key:generate之后将您的应用程序文件夹权限更改为755。它应该能解决你的问题。

您想写一个url还是打开一个url文件?在get的情况下,它应该是file_get_contents