English 中文(简体)
apache and sftp许s for pagepress auto Update in ubuntu [los]
原标题:apache and sftp permissions for wordpress automatic update in ubuntu [closed]
Closed. This question is off-topic. It is not currently accepting answers.

Closed 11 years ago.

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

据我所知,问题在某些地方是有许可的。 我非常了解一些要点,因此,这可能是一个简单解决办法的棘手问题,但我不知道如何解决这一问题。

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 证书表)。

问题回答

如果你重新安装了SSH2PHP模块,那么将允许你选择升级为SFTP。

乌班图

sudo apt-get install libssh2-php

在CentOS (EPEL required):

sudo yum install php-pecl-ssh2




相关问题
Using SimplePie with CodeIgniter and XAMPP

I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...

Multiple Sites with common files

I have developed over 50 sites that all use the exact same files other than CSS and IMAGES, I currently duplicate the files each time I create a new site and upload different css and images. What ...

http server validation

I finish a litle http server, writing from scratch. I would like to be sure that my imlementation is conforme to the HTTP specifications. W3C give us tools for HTML/XML conformance, but i see nothing ...