Skip to content

Instantly share code, notes, and snippets.

@dickstar
Last active March 8, 2017 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dickstar/0c4ef3a3d8f43010af8c39dc14b5114c to your computer and use it in GitHub Desktop.
Save dickstar/0c4ef3a3d8f43010af8c39dc14b5114c to your computer and use it in GitHub Desktop.
For php7.0 in ubuntu 14.04
#!/bin/bash
sudo apt-get install php-pear
sudo pecl channel-update pecl.php.net
sudo apt-get install -y php7.0-dev
sudo apt-get install pkg-config libssl-dev
sudo pecl install mongodb
// add extension=mongodb.so to /etc/php/7.0/fpm/php.ini
//add extension=mongodb.so in fpm and cli:
//sudo nano /etc/php/7.0/fpm/conf.d/30-mongodb.ini
//sudo nano /etc/php/7.0/cli/conf.d/30-mongodb.ini
sudo restart php7.0-fpm
sudo service nginx restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment