wordpress文件权限最佳实践
分两步
配置成功前(wordpress 安装数据库时,安装主题,安装插件等)
chown www:www -R * # Let Apache be owner find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x find . -type f -exec chmod 644 {} \; # Change file permissions rw-r--r--
配置成功后
chown <username>:<username> -R * # Let your useraccount be owner chown www:www wp-content # Let apache be owner of wp-content chown www:www wp-content/uploads -R chmod 777 wp-content/uploads -R
wordpress文件权限最佳实践.txt · 最后更改: 由 127.0.0.1