简体   繁体   English

wordpress的权限问题

[英]Permissions problems with wordpress

I urgently need some advice as to why I have to change all files I want to edit to 777? 我迫切需要一些建议,为什么我要将我要编辑的所有文件更改为777? I think there maybe sound thing wrong with the apache user not being the owner. 我认为apache用户不是主人可能听起来有些不对劲。 I can only edit any file if I set 777 so anyone can edit it. 如果我设置777,我只能编辑任何文件,所以任何人都可以编辑它。 Any help much appreciated. 任何帮助非常感谢。

cheers 干杯

This web page on the wordpress.org website seems to be addressing your issue exactly: http://wordpress.org/support/topic/file-permissions-avoiding-777 wordpress.org网站上的这个网页似乎正在解决您的问题: http//wordpress.org/support/topic/file-permissions-avoiding-777

This isn't really a thing that can be controlled from wordpress, but seems to have some relation to the way your hosting company configures its servers. 这不是一个可以通过wordpress控制的东西,但似乎与托管公司配置其服务器的方式有某种关系。

You shouldn't have to. 你不应该这样做。 Often this comes down to the group being incorrect. 通常这归结为群体不正确。 My wp-content is owned by the user apache and the group apache on a standard Slackware Linux installation. 我的wp-content由标准Slackware Linux安装上的用户apache和组apache拥有。

File permissions are 664 on these. 这些文件权限是664。 For me, I do: 对我来说,我这样做:

chown -R apache.apache wp-content
chmod -R o-w wp-content
chmod -R gu+rw wp-content

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM