Last active
January 3, 2016 06:59
-
-
Save tsolar/8426198 to your computer and use it in GitHub Desktop.
install mongo extension for PHP
This file contains hidden or 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
apt-get install php5-dev php-pear make mongodb | |
pecl install mongo | |
echo 'extension=mongo.so' > /etc/php5/mods-available/mongodb.ini | |
cat /etc/php5/mods-available/mongodb.ini | |
ln -s /etc/php5/mods-available/mongodb.ini /etc/php5/fpm/conf.d/20-mongodb.ini | |
service php5-fpm restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment