Phone:+(91) 9874995307
Email: sbwebdeveloper@gmail.com
Opening: 10AM - 07PM
MongoDB configure in Xampp Windows
  • Nov 18, 2020
  • 10 likes

MongoDB configure in Xampp Windows

Now a days mongoDB is highly used for its fast data access. Its a NOSQL database which store data in BJON format. Most of renoud organization slowly moving to Mongo DB. Today i will show you how to Configure mongoDB in Xampp/Apache/PHP in window mechine

1. We need to download mongodb extension for the same. for that we have to know which version will support for our mechine.For that we can follow any one of the below step.

Run phpinfo() function through a .PHP file.
Run php -i commend in terminal

2. Now you have to find below information from the UI or Terminal output. I have given my config

PHP Version : 7.2.34
Loaded Configuration File : C:\xampp\php\php.ini
Compiler  : MSVC15 (Visual C++ 2017)
Architecture : x64
Thread Safety : enabled

3. Now go to PECL PHP[https://pecl.php.net/package/mongodb] url and find latest stable version and click on Blue Windows DLL icon

1.8.2 stable 2020-11-05 mongodb-1.8.2.tgz (1262.3kB)  DLL

4. Now you can find DLL list with multiple php version/Architecture/Thread Safty. You have to download based on your Installed PHP information

For me i have choose below one.

7.2 Thread Safe (TS) x64

5. After download zip file. Unzip it in a folder, copy .dll file and past it in php ext folder. Below i have given the folder path

xampp > php > ext

6. Now we have to update php.ini file to active mongoDB Extention. For that open php.ini file in administrator mode and add below line and restart Xampp.

extension=php_mongodb.dll

7. Installation process is complete now. For confirmation you can check it by following STEP-1.

If you find our post usefull for you, please click on like button. We will share you more commonly usefull article soon