在网站根目录下执行(针对debian/ubuntu,这俩系统的php-fpm用户名是www-data)
for directories
//language:bash
find . -type d -print0 | xargs -0 chmod 0755
for files
//language:bash
find . -type f -print0 | xargs -0 chmod 0644
//language:bash
chmod 600 wp-config.php
//language:bash
chown -R www-data:www-data *
如果wordpress站点健康检查提示无法自动更新,则执行下面这句,把当前文件夹也加入php-fpm用户组
//language:bash
chown -R www-data:www-data .
发表回复