Installer MongoDB pour PHP 7.0 fpm sous Debian Jessie

Installation de quelques librairies

# apt-get install pkg-config php7.0-dev
# pecl install mongodb

Activation de mongo

# echo "extension=mongodb.so" >> /etc/php/7.0/fpm/php.ini

Il ne reste plus qu’à redémarrer

# service php7.0-fpm restart

Note aux usagers de php 5.x : \MongoClient a été remplacé par \MongoDB\Driver\Manager

John Doe avatar
About John Doe
John Doe's true identity is unknown. Maybe he is a successful blogger or writer. Nobody knows it.
comments powered by Disqus