Skip to main content

Installing MongoDB extension to your xampp / wamp






Install your preferred wamp/xamp or any webserver+php.


Download the latest pecl (DLL) from https://pecl.php.net/package/mongodb
Make sure that you are downloading the correct version for your current php.

Use <?php phpinfo(); ?> to know your current version of php, if threadsafe and if it's x86 or x64.
If you choose the wrong dll apache could crash without errors in the logs.

Copy "php_mongo.dll" to your extension folder.
For example in the following folder:


c:\xampp\php\ext


Add the following string to your php.ini

extension=php_mongo.dll




Comments