Skip to content

Instantly share code, notes, and snippets.

@bwoodmansee
Last active January 2, 2016 13:28
Show Gist options
  • Save bwoodmansee/8309895 to your computer and use it in GitHub Desktop.
Save bwoodmansee/8309895 to your computer and use it in GitHub Desktop.
Install mongo on your vagrant box
sudo yum install mongo
sudo pecl install mongo

touch /etc/php.d/mongo.ini
vi /etc/php.d/mongo.ini

Add the following line:

extension=mongo.so

Verification:

[vagrant@localhost php.d]$ php -m | grep mongo
mongo
@hjr3
Copy link

hjr3 commented Jan 11, 2014

No need to touch and then use vi:

echo "extension=mongo.so" > /etc/php.d/mongo.ini

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment