apache and sftp permissions for wordpress automatic update in ubuntu [closed]

血红的双手。 提交于 2019-12-01 07:31:22
T.J. Cravey

If you're able to install the SSH2 PHP Module Wordpress will then give you the option to upgrade over SFTP.

In Ubuntu:

sudo apt-get install libssh2-php

In CentOS (EPEL required):

sudo yum install php-pecl-ssh2

I was trying to do the same thing with Wordpress updates, until I realized that Wordpress only supports FTP which, confusingly, SFTP is not. From Wikipedia:

FTPS should not be confused with the SSH File Transfer Protocol (SFTP), an incompatible secure file transfer subsystem for the Secure Shell (SSH) protocol. It is also different from Secure FTP, the practice of tunneling FTP through an SSH connection.

I'm still trying to figure out if there's a secure way to do Wordpress updates automatically; I don't know yet whether or not FTPS is truly secure.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!