php extensions

Mongo

cd path/to/src
git clone https://github.com/mongodb/mongo-php-driver.git
phpize
./configure
make
sudo make install
Then add
extension=mongo.so
to your php.ini file.

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
2. download the php-ssh2 package from http://pecl.php.net/package/ssh2:
tar xvf ssh2-0.12.tgz
cd ssh2-0.12
phpize
./configure --with-ssh2
make
make install
3. modify the php.ini
nano /etc/php.ini
add the "extension=ssh2.so" to the extension part of php.ini 4. check the environment of php, use phpinfo(); In order to compile localized version options
/opt/php5x/bin/phpize
./configure --with-php-config=/opt/php5x/bin/php-config

 

Hessen Kasselstraat 8
5615 SM Eindhoven
phone: +316-81888456