我环顾四周,大部分答案都不是共享主机,这恰好是我的情况。Laravel未能打开流:权限被拒绝
我已经完成chmod
在storage
和bootstrap/cache/
到775
。我也有一个storage/framework/views
目录,我也试过删除storage/logs/laravel.log
。
N.B该脚本在我以前的共享主机方案上运行良好,只有file_get_contents
的页面似乎成了问题。
有问题的文件是ErrorException
在PostController.php line 17
:我正在使用file_get_contents
调用。
哪个文件被拒绝的权限?通常这个错误包括文件路径。 – Devon
它在这里在PostController.php 17行错误: –
我会想象'file_get_contents'被禁用您的共享主机提供商。相关:https://stackoverflow.com/questions/4656102/equivalent-function-for-file-get-contents – Scopey