Laravel网站根目录权限设置

for directories

find . -type d -print0 | xargs -0 chmod 0755

for files

find . -type f -print0 | xargs -0 chmod 0644
chown -R www-data:www-data *

把当前文件夹也加入php-fpm用户组

chown -R www-data:www-data .

更改 storage 文件夹权限

chmod -R 0755 storage

 

本文为“老吴笔记”的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注