Mongo
cd path/to/src git clone https://github.com/mongodb/mongo-php-driver.git
phpize ./configure make sudo make install
extension=mongo.so
PHP SSH2
1. download the libssh2 package from http://libssh2.org:tar xvf libssh2-1.4.3.tar.gz cd libssh2-1.4.3 ./configure make make install
tar xvf ssh2-0.12.tgz cd ssh2-0.12 phpize ./configure --with-ssh2 make make install
nano /etc/php.ini
/opt/php5x/bin/phpize ./configure --with-php-config=/opt/php5x/bin/php-config