admin管理员组文章数量:1336725
Im not sure if this question is about server, git or wordpress. i have wordpress set up on ubuntu VPS in /home/user its working now when all chown and group is "user".
however, when i git pull (as user root) it set the files owner and group to root. then they dont work.
so either wordpress should be able to run with files who have root ownership, or somehow the wordpress directory should automatically chown when i pull, possible?
Im not sure if this question is about server, git or wordpress. i have wordpress set up on ubuntu VPS in /home/user its working now when all chown and group is "user".
however, when i git pull (as user root) it set the files owner and group to root. then they dont work.
so either wordpress should be able to run with files who have root ownership, or somehow the wordpress directory should automatically chown when i pull, possible?
Share Improve this question asked Aug 12, 2012 at 17:13 peterguspetergus 2051 silver badge10 bronze badges1 Answer
Reset to default 4WordPress and Apache
WordPress needs to be able to use Apache. By default Apache runs on Ubunutu as user www-data
. And ... www-data
is also a member of the group www-data
So when you try to do a Git Pull then every file will have the wrong permissions as it's expecting the owner to be able to run things on Apache.
If you do a CHOWN to make everything under your '/wordpress' directory to be owned by www-data everything should be fixed ... run this command:
sudo chown -R www-data:www-data /wordpress
You'll need to run this command as sudo. And you may need to check your permissions on folders under wp-content
本文标签: can i run wp as root permissions
版权声明:本文标题:can i run wp as root permissions 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742321249a2452829.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论