It s my first time trying to set up Wordpress or any website on a cloud hosting. I am on Ubuntu server, and Wordpress is located in var/www/mydomain/public folder.
www.un.org/Depts/DGACM/index_spanish.htm 我想实现的是:。 Wordpress(PHP)和SFTP用户都可以查阅和修改同样的档案。 话语应当能够自动更新,用于花gin等。
This is what I have done so far:
- I have chmodded this folder to 775 to allow group read/write permissions.
- I have added apache user (www-data) and SFTP user (suser) both to group wp.
- I have made wp as the group owner of all files inside the wordpress folder.
www.un.org/Depts/DGACM/index_spanish.htm 什么工作:
- I can edit theme and plugin files with Wordpress s built-in theme/plugin editor.
What does not work:
- Wordpress update still asks for the FTP details to carry out the update
- When I create a new file with SFTP user, it s permissions will be 644, but they should be 775
What I ve tried
- I have tried all the steps here (answer by caf): A general linux file permissions question: Apache and WordPress
- I have tried this: http://jeff.robbins.ws/articles/setting-the-umask-for-sftp-transactions
- I have also tried adding umask 002 to my SFTP startup login files, but I do not know where they are located.
据我所知,问题在某些地方是有许可的。 我非常了解一些要点,因此,这可能是一个简单解决办法的棘手问题,但我不知道如何解决这一问题。
UPDATE: I did not know that I would have to restart the ssh server. I did it with this command /etc/init.d/ssh restart
and after that files created with SFTP have permissions 664 (as they are supposed to)
Also, it seems that Apache has to be restarted as well, with this command: /etc/init.d/apache2 restart
然而,Wordpress still/em> 赢得了自动更新(FTP 证书表)。