嗨,我通过 git 将我的 laravel4 脚本从我的笔记本部署到自己的 VPS 服务器上,使用 CentOS7 进行生产。我对存储文件夹的权限有问题。我得到错误
file_put_contents(/var/www/myweb/app/storage/views/0353b2081a97162a6d5fdda4c3a3f918): failed to
打开流:权限被拒绝
我尝试通过此更改对存储目录的权限
cd app/
chown -R apache:apache storage
cd storage/
find . -type d -exec chmod 775 {} \; && find . -type f -exec chmod 664 {} \;
但错误仍然相同。我必须如何设置权限才能在 CentOS 7 上解决这个问题?