Enable SSH for WordPress Auto-update
WordPress has an ‘Auto-update’ feature which gives you the option to use FTP or FTPS. There is however a third option: SSH.
I followed these instructions.
My server is Gentoo based so the PHP SSH extension has to be installed like this:
emerge pecl-ssh2
/etc/init.d/apache2 restart
The extension is automatically enabled at install time.
On my first attempt I got the following error:
Unable to locate WordPress Root directory.
This turned out to be because WordPress needs the following line in php.ini:
allow_url_fopen = On
This setting is turned off in the default Gentoo PHP config file.
Once its all working, it works for upgrading plugins as well as WordPress itself.
No Comments »
RSS feed for comments on this post. TrackBack URL