Looking around I've found this nice GUI tool for managing MongoDB called RockMongo.
If you don't have php installed you may need to install it and add the mongo plugin for php:
#Install PHP yum install php php-devel php-pear #Install the CPP compiler yum install gcc #Install the mongo extension on PHP pecl install mongo
Then you need to enable php on your apache server. Edit the httpd.conf file
Below the following lines:
AddType application/x-compress .Z AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps
Then enable the mongo extension. Edit the php.ini file
On section Dynamic Extensions add the following line:
Now enable the Apache server to user network connections to the database:
setsebool httpd_can_network_connect 1 setsebool httpd_can_network_connect_db 1
And to finalize restart your servers:
#restart Apache httpd restart #restart MongoDB mongod restart
You should have your Rock Mongo Rockin'
Ejem! I think I forgot something. Deploying the application on your apache! For this I will quote them directly:
- download the package
- unzip the files to your disk, under root of your site
- open the config.php (index.php before v1.0.5) 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!
Note: this configuration was done on a CentOS 6 machine