Install MongoDB PHP driver on Ubuntu 14.04


  1. sudo apt-get install -y php-pear php5-dev
  2. sudo pecl install mongo
  3. sudo sh -c "echo ‘extension=mongo.so’ > /etc/php5/mods-available/mongo.ini"
  4. sudo ln -s /etc/php5/mods-available/mongo.ini /etc/php5/apache2/conf.d/mongo.ini
  5. sudo service apache2 restart
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

WordPress.com.

Up ↑

%d bloggers like this: