Commit 0633cb09 by Carsten Brandt

Update mongodb-setup.sh

show PHP extension version
parent 3d54d226
......@@ -2,14 +2,18 @@
#
# install mongodb
mongod --version
if (php --version | grep -i HipHop > /dev/null); then
echo "mongodb does not work on HHVM currently, skipping"
else
echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
fi
# show mongodb version
mongod --version
# show mongo PHP extension version
php -i |grep mongo -4 |grep -2 Version
# enable text search
mongo --eval 'db.adminCommand( { setParameter: true, textSearchEnabled : true})'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment