Wordpress Auto Upgrade and SFTP
2009 June 30 at 05:40 » Tagged as :wordpress, security, subversion, ath10k,
cd /usr/src wget http://surfnet.dl.sourceforge.net/sourceforge/libssh2/libssh2-0.14.tar.gz tar -zxvf libssh2-0.14.tar.gz cd libssh2-0.14/ ./configure make all install The libssh2 download is really ancient - it wouldn't even compile on my Centos box - worse gcc even segfaulted while trying to compile it. I kid you not. I have never seen gcc segfault before.
make[1]: Entering directory `/root/libssh2-0.14/src' gcc -o channel.o channel.c -c -g -O2 /usr/include -I/usr/include -Wall -I../include/ -fPIC gcc: /usr/include: linker input file unused because linking not done channel.c253:10: /usr/include: No such file or directory channel.c:71: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[1]: *** [channel.o] Error make[1]: Leaving directory `/root/libssh2-0.14/src' make: *** [all] Error
The correct way to go about it is to visit the libssh2 project page on sourceforge and download the latest version (happens to be 1.1 at the time of writing). The latest version could be compiled without any problems. After that you can do the pecl installation followed by editing the php.ini filepecl install -f ssh2
In my case, I had to give the full path to the ssh2.so file because the engine couldn't find the extension when only a relative path was given. That's because pear seems to have installed the shared object at a wierd location. Well in the end after the apachectl restart I now have the PHP SSH extension enabled and wordpress update page does show the ssh2 extension.