跳至内容
Taijicoder Wiki
用户工具
登录
站点工具
搜索
工具
显示页面
过去修订
反向链接
最近更改
媒体管理器
网站地图
登录
>
最近更改
媒体管理器
网站地图
您的足迹:
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 ``` [参考链接](https://stackoverflow.com/questions/18352682/correct-file-permissions-for-wordpress) [另外一种方法](https://www.smashingmagazine.com/2014/05/proper-wordpress-filesystem-permissions-ownerships/)
wordpress文件权限最佳实践.txt
· 最后更改:
2024/02/04 04:49
由
127.0.0.1
页面工具
显示页面
过去修订
反向链接
回到顶部