用户工具

站点工具


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/upload -R

参考链接

另外一种方法

wordpress文件权限最佳实践.1499149476.txt.gz · 最后更改: (外部编辑)