Wednesday, November 6, 2013

My answer to "WAMP + Mongo"

This is my answer to a Question on Support site for LampCMS project


I have wamp + mongo running on my local PC. That's basically my development environment.
You install them separately.
Download Mongodb for Windows, install it, then start it from command line by just launching the mongod from bin directory from the command prompt. Do not just click on mongod file - you must instead open command prompt, cd into the directory where mongod file is located and start it by just typing mongod
Do not close the prompt - just keep it opened for as long as you want your mongo server to run.

You may need to pre-create the c:/data/db directory on your computer. That's where mongo stores database files by default.

Read instructions just to be sure:
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/


Then configure your WAMP server using sample config file in Lampcms distribution. In Lampcms in config/!config.ini edit the 'server' setting in MONGO section, like this:
server = "mongodb://127.0.0.1:27017"

That should work for your local mongodb server.

No comments:

Post a Comment