A major shout of thanks goes to Jon for his WordPress post entitled Enabling SSH/SFTP Updates.
I’d been struggling with making WordPress updates work properly for the longest time, setting up file ownerships and permissions. Things always seemed to be mostly right. If I tried to do an update of any form, I’d see this:
Error: There was an error connecting to the server
WordPress offers FTP and FTPS (SSL).
I’d try the secure option and things just would not work. Then I’d go examine my SFTP connections and my SSH, and it’d all be working fine.
It took bdawson‘s post on FTPS vs. SFTP to make me realize I was so falling into the habit of typing STFP that I didn’t realize that wasn’t what WordPress was offering!
With Jon’s post, enabling SFTP in WordPress becomes trivial.
- # apt-get install libssh2-php
- # /etc/init.d/apache2 restart
The SSH2 option then presents itself, and all is right in the world. Thanks guys!