Skip to content

Instantly share code, notes, and snippets.

@davidcostadev
Forked from imposibrus/install.sh
Last active June 22, 2017 00:16
Show Gist options
  • Save davidcostadev/fca879095637e5c2667b15eb62a1b9a0 to your computer and use it in GitHub Desktop.
Save davidcostadev/fca879095637e5c2667b15eb62a1b9a0 to your computer and use it in GitHub Desktop.
Install MongoDB PHP driver on Ubuntu 14.04
sudo apt-get install -y php-pear php5-dev
sudo pecl install mongo
sudo sh -c "echo 'extension=mongo.so' > /etc/php/7.0/mods-available/mongo.ini"
sudo ln -s /etc/php/7.0/mods-available/mongo.ini /etc/php/7.0/apache2/conf.d/mongo.ini
sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment