On Ubuntu 10.04 LTS, Do this (there’s no need to do any compiling anymore)
apt-get install libssh2-1-dev libssh2-php
You can now test if PHP recognizes it’s new ssh2 extension by running:
php -m |grep ssh2
Don’t forget to restart Apache
service apache2 restart
6 thoughts on “Installing PHP’s SSH2 extension on Ubuntu”
short and working =)
thx for it
I wish I had typed in the search that took me here first. It would have saved an hour, as it is, you saved me several more, probably. THANK YOU.
Thanks alot. It works fine.