Last active
March 8, 2017 12:37
-
-
Save dickstar/0c4ef3a3d8f43010af8c39dc14b5114c to your computer and use it in GitHub Desktop.
For php7.0 in ubuntu 14.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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