Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

MongoDB Driver on Windows

Wojtek Iskra edited this page Jul 9, 2013 · 1 revision

Instructions according to the http://www.hongkiat.com/blog/webdev-with-mongodb-part3/

Windows users should head over to this Github repository full of MongoDB PHP drivers. Find the latest release which supports your version of PHP (5.2, 5.3, 5.4) and download the .zip. Once you extract the folder find the extension which matches your version of PHP. For example use php_mongo-1.2.12-5.3-vc9.dll and rename this to php_mongo.dll.

Now place this file directly inside your PHP extensions directory located in C:\wamp\bin\php\php5.x\ext\.

Afterwards, go to your php.ini and add the following line:

extension=php_mongo.dll  

Restart your web server and open up a phpinfo() page to view the results. You can do a CTRL + F search for “mongo” and should find details about the module itself.