How to enable MongoDB extension in WampServer

This post will teach about how to enable MongoDB extension in WampServer for PHP 5.5.12 version. If you have not installed MongoDB in your system you can check this post Installing MongoDB in Windows OS.

List of things need to installed before enabling MongoDB in WampServer.

  1. WampServer 2.5
  2. MongoDB 3.0
Wamp Server 2.5
Wamp Server 2.5

If everything is installed, then we will download MongoDB driver from https://s3.amazonaws.com/drivers.mongodb.org/php/index.html for PHP 5.5.12 version now we have to download php_mongo-1.5.5.zip from the website.

Once you have downloaded the .zip file exact and copy .dll into wamp\bin\php\php5.5.12\ext folder. Restart your WampServer and enable php_mongo in PHP extension,  after everything is done.

Wamp Server PHP Extension
Wamp Server PHP Extension
Wamp Server Enable PHP Mongo Extension
Wamp Server Enable PHP Mongo Extension

Open the url http://localhost/?phpinfo=1 in your browser.

Verifying MongoDB extension enabled in Wamp Server
Verifying MongoDB extension enabled in Wamp Server

If you are able to see same as the screenshot in your phpinfo, that means MongoDB extension is enabled in your WampServer.