Set up mongodb and cluster

install mongodb

There are two mongodb versions,  usually out of date one from Ubuntu standard repository, and latest from mongodb-10gen package.  Therefore we need to remove the ubuntu one and install 10gen package.

install rock_mongo

  • sudo apt-get install php-pear
  • install php_mongo extension: sudo pecl install mongo
  • configure php_mongo extension: add extension=mongo.so to /etc/php5/apache2/php.ini
  • download rock_mongo and cp -r to /var/www/vhosts/mongo.admin
  • configure dnamasq alias “*admin”now Apache, map a “mongo.admin” to a vhost. 
  • (For Replication web admin) cat /etc/apache2/mods-enabled/vhost_alias.conf
  • sudo service apache2 restart
Advertisements
This entry was posted in mongodb, ubuntu. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s