Install
MongoDB:
Create
a /etc/yum.repos.d/10gen.repo
and add the below lines
[10gen] name=10gen Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 gpgcheck=0 enabled=1 #yum install mongo-10gen mongo-10gen-server
#service mongod start Install MongoDB PHP driver: Download MongoDB PHP driver .zip from https://github.com/mongodb/mongo-php-driver #unzip mongo-php-driver-master.zip #cd mongo-php-driver-master#phpize
#
./configure
#
make
#
make install
Then
add
extension=mongo.so
to your php.ini file. #make testInstall Rockmongo (MongoDB Administration tool):
Download from Rockmongo from https://github.com/iwind/rockmongo
#unzip rockmongo-1.1.5.zip
#mv rockmongo /var/www/html
#cd /var/www/html/rockmongo
#Open the config.php with your convenient editor, change host, port, admins and so on to yours
#Visit the index.php in your browser, for example: http://localhost/rockmongo/index.php
#Login with admin username and password, which is set "admin" and "admin" as default
#
Play with your MongoDBs!
Upgrade from old version:
#Copy all files excluding config.php to your old version directory
Hi, as you can install the mongo driver for different versions of PHP? I install it in the default version 5.3 and all good. But when I instao in PHP 5.4 does not load the module
ReplyDelete