Friday, 11 January 2013

Install MongoDB, MongoDB PHP driver, RockMongo on RHEL 6 x86_64

Install MongoDB:
Create a /etc/yum.repos.d/10gen.repo and add the below lines
name=10gen Repository
#yum install mongo-10gen mongo-10gen-server
#service mongod start
Install MongoDB PHP driver:
Download MongoDB PHP driver .zip from
#cd mongo-php-driver-master
#make install
Then add to your php.ini file.
#make test
Install Rockmongo (MongoDB Administration tool):
Download from  Rockmongo from
#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


  1. 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

  2. Nice blog...Very useful information is providing by ur blog. Great beginning php tutorials Very clear and helpful for beginners.