Wednesday, November 7, 2012

RockMongo: MongoDB Client on Mac OSX Lion

On Mac OSX Lion, I use MongoHub as the client tool to view and display my mongodb. MongoHub has native UI for Mac, and provided functionalities for most of my operations. However MongoHub is a little bit buggy and sometimes crashes. On my apache server, I use RockMongo, an excellent Mongo administrator site to manage my mongodb. Here is some steps for me to lunch RockMongo on my Mac OSX Lion(10.7). It runs perfectly!

  1. Apache2 and PHP5 has already been installed on Mac OSX. You just need to enable it.
    • Enable Apache2:   
    install apache2 on mac osx
    • PHP is disabled on apache2 by default, you need to enable it manually: open apache2 config file with command "sudo vi /etc/apache2/httpd.conf", find the line "LoadModule php5_module libexec/apache2/" and remove the "#" at the beginning to enable php5 module.
  2. Install mongo php driver
    • You may need to firstly install the php tool "pecl"
      • cd /usr/lib/php
      • sudo php install-pear-nozlib.phar
      • Edit/etc/php.ini and find the line: ;include_path = ".:/php/includes" and change it to:
        include_path = ".:/usr/lib/php/pear"
      • sudo pear channel-update
      • sudo pecl channel-update
      • sudo pear upgrade-all
    • Then run command "sudo pecl install mongo". Make sure you xcode has been installed correctly. pecl will download mongo php driver source code and build it. (The precompiled may not work on your machine. So you have to use pecl to install the driver.)
    • run command sudo vi /etc/php.ini to open php.ini for editing, if you /etc/php.ini does not exist, copy /etc/php.ini.default to /etc/php.ini, add ""
  3. Download RockMongo source code, and copy to your "computer website folder"
  4. You need to run "sudo apachectl restart" to restart apache2 server.
  5. Login to http://localhost/rockmongo, with user/password as "admin/admin". Then you should see  RockMongo as follows:


  1. Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.
    PHP Training Institute in Chennai


  2. اعالى الخليج تقدم افضل خدمات نقل العفش الدولى المتميزه باسعار متميزة ومنها :

    شركة شحن عفش من الرياض الى دبي
    نقل عفش من الرياض الى الاردن شحن عفش من الرياض الى الاردن

  3. Thanks a lot very much for the high quality and results-oriented help.
    I won’t think twice to endorse your blog post to anybody who wants
    and needs check Dhan kesari Today Result 11:55
    Dhankesari Lottery Result Today 11:55 AM

  4. We providing Case Study Help including all subjects like Law Case Study, Organizational Behavior Case Study, Marketing Case Study, HR Functions Strategy Case Study, History Case Study & more writing services.For more services : English Assignment Help | Science Assignment Writing Help

  5. This is very awesome news for an SEO expert because he has to often shared his services and websites on social media for its marketing. I appreciate your working strategy which is helpful for my writing skills.
    Assignment writing services

  6. This is extremely helpful info!! Very good work. Everything is very interesting to learn and easy to understand. Thank you for giving information.Return Of Xander Cage Jackets

  7. I have heard OS X has improved upon many aspects that I used to have problems with before. I just opened my system to write my essay for my language course. However, after reading this, I think I will first update my system and then start writing. I hope it gets updated before I lose motivation to write.

  8. Eminem is an American songwriter, rapper, record producer and an actor. Hе hаѕ also bееn dеѕсrіbеd аѕ оnе оf thе grеаtеѕt hір-hор аrtіѕtѕ оf аll tіmе, оnе оf thе grеаtеѕt rарреrѕ оf аll tіmе аnd was lіѕtеd іn Rоllіng Ѕtоnе lіѕt оf 100 grеаtеѕt аrtіѕtѕ оf аll tіmе аt number 83. Here are a few more interesting facts and Eminem net worth you might not have known.

  9. So happy to find good place to many articlesin the post, the writing is just great, thanks for the post.