Monday, September 14, 2015

How to install mongo on ubuntu 12.04

I got the error of MongoClient not found. I am using ubuntu 12.04 .
Below are the steps to install php-mongo driver .

sudo apt-get install php5-dev make php-pear
sudo pecl install mongo


Add extension mongo.so into php.ini file
extension=/usr/lib/php5/20100525/mongo.so

No comments:

Post a Comment