The MongoDB server is built to already work with your current web server. The problem is that you’ll need to install drivers for your preferred backend language – PHP, Ruby, Node.js, Perl, whatever. I won’t go into the process of installing WAMP/MAMP because this is a bit off topic from Mongo.
Full Story:
http://www.hongkiat.com/blog/webdev-with-mongodb-part3/