RockMongo - PHP MongoDB Administrator

RockMongo is on sale, including Domain, Site, Brand, and Source Codes.

We love RockMongo, but we also need bread for living. We have gained very few donations in last years, now i have few time to maintain it, so we will sale it to that who have enough resource to maintain the project.

If you are interested in it, please contact with me via iwind.liu@gmail.com

Wiki » FAQ

Installation

How to quickly start with RockMongo?

RockMongo on Windows helps users on windows setup runtime environment quickly.

If you are working on Windows or Mac OS X, there are softwares can help you quickly start with RockMongo, without installing PHP manually.

ParmaStack also includes a Unix version, you can check out it and have a try.

How to install php_mongo driver?

Go to php offical website: http://www.php.net/manual/en/mongo.installation.php.

If you are familiar with PHP, go to http://pecl.php.net/package/mongo directly to download latest driver version For PHP.

Configuration

How to disable authentication?

set mongo_auth and control_auth to false:

 
$MONGO["servers"][$i]["mongo_auth"] = false;
...
$MONGO["servers"][$i]["control_auth"] = false;
 

How to connect MongoHQ

See configuration for MongoHQ here: http://rockmongo.com/wiki/configuration?lang=en_us#%23%23%23+Configuration+for+MongoHQ+%0D

How to change password

See configuration for Authenticate: http://rockmongo.com/wiki/configuration?lang=en_us#%23%23%23+Controls%0D

Basically, open config.php, and add lines below to right position:

 
$MONGO["servers"][$i]["control_users"]["myusername"] = "mypassword";
$MONGO["servers"][$i]["control_users"]["iwind"] = "123456";
 

Usage

How to MapReduce

You can run command on a database:

 
 { mapreduce : <collection>,
   map : <mapfunction>,
   reduce : <reducefunction>
   [, query : <query filter object>]
   [, sort : <sorts the input objects using this key. Useful for optimization, like sorting by the emit key for fewer reduces>]
   [, limit : <number of objects to return from collection, not supported with sharding>]
   [, out : <see output options below>]
   [, keeptemp: <true|false>]
   [, finalize : <finalizefunction>]
   [, scope : <object where fields go into javascript global scope >]
   [, jsMode : true]
   [, verbose : true]
 }
 

or install mapreduce plugin on this page.

Known issues

How to fix 500/502 errors?

Basically, it was caused by php_mongo.so (or php_mongo.dll on windows), you should upgrade your php_mongo driver from http://pecl.php.net/package/mongo or download a latest dll from http://us.php.net/manual/en/mongo.installation.php#mongo.installation.windows.

After new driver installation, restart your web server, and refresh the RockMongo, it will goes ok. Otherwise, you should send us php error log so that we can analyze the reason.

PHP Error: Fatal error: Allowed memory size when export a large DB

To export a large db, you need to change your configures in your php.ini :

 
max_execution_time = 30
memory_limit = 128M
 

to larger numbers, such as:

 
max_execution_time = 1200
memory_limit = 1024M
 

Then you need to restart your web server (apache, fastcgi ....).


blog comments powered by Disqus
RockMongo Team 2010-2014 E-mail: iwind.liu@gmail.com