May
27
Installing PHP’s SSH2 extension on Ubuntu
Posted by | Posted in How to, Linux, PHP, Tips and Tricks, Tutorials, Ubuntu | Posted on 27-May-2010
Tagged Under : LTS, PECL, PHP, PHP5, PHPIZE, SSH2, Ubuntu, Ubuntu 10.04, Ubuntu 10.04 LTS, Ubuntu Server
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


