How To Install Mongodb Php Driver On Windows
Learn how to install MongoDB on Windows OS and configure with PHP on XAMPP.
There are a couple of tutorials out at that place already, merely neither of them helped me set everything upward 100%. Some of them are missing primal explanations, some of them are a scrap old. My tutorial presumes you know your manner around XAMPP on Windows and you have it installed already.
Here'southward how to install MongoDB on your local Windows auto with XAMPP in 5 piece of cake steps:
Stride 1. Download mongo driver
To download mongo driver for Windows visit pecl.php.internet
Download the latest stable release past clicking on the DLL link. I used the latest stable release at the fourth dimension, 2017-05-04, version ane.2.9.

On the adjacent page there is a DLL list. Information technology is vital to option the right version. You need to selection depending on three things:
- the PHP version that is installed with your XAMPP
- Architecture x86 or x64
- Whether Thread Condom is enabled or disabled
Hither's where to observe out that information:
- Get-go XAMPP
- Navigate to the XAMPP dashboard via Net browser (tipically at http://localhost)
- Click the PHPinfo in the top carte du jour
- At that place, in the new tab yous volition come across the tabular array with the necessary information. At the top, you volition come across PHP version, in my instance it was seven.0.13
Beneath that, in the tabular array, you volition meet list of other information. You need to find the value for the Architecture (x86 or x64) and Thread Safety (enabled or disabled).
Finally, yous tin can choose a proper DLL to download.
In my case, I had:
- PHP version 7.0.13
- Architecture x86
- Thread Prophylactic enabled
When Thread Prophylactic is enabled, you lot demand to download Thread Safe (TS) version. So I downloaded file: seven.0 Thread Safe (TS) x86

Step 2. Unzip downloaded mongo commuter version and re-create .dll file to XAMPP
Subsequently successful download, unzip and detect the .dll file. Copy it to ext directory of your XAMPP installation. If yous installed XAMPP to C drive, full path to the ext folder would exist C:\xampp\php\ext
Pace 3. Register mongo .dll file within php.ini
Add following line into php.ini file:
extension=php_mongodb.dll
If your .dll file name is unlike, information technology'southward ok, just brand sure y'all call it like that inside php.ini file. For example, if you added a file with a proper noun of php_mongo.dll in the ext binder, you demand to put that in the php.ini file.
Step 4. Restart XAMPP and refresh phpinfo.php folio
When yous restart XAMPP and refresh the phpinfo folio, something similar this should announced when y'all CTRL+F and type mongo:

If you don't see that on your phpinfo page, y'all did something wrong and so try to go back through previous steps.
Step 5. Install MongoDB on Windows
a) Download latest MongoDB server version.
b) Choose custom setup blazon and install in the C:\mongodb folder.
c) Then create db folder within data folder on the C bulldoze – C:\data\db
d) Showtime MongoDB past executing the following command in the CMD: C:\mongodb\bin\mongod.exe
That is information technology, you successfully installed MongoDB on Windows and configured information technology in XAMPP!
Only in instance you need extra assist with stride 5, here is the unabridged process explained with images.
Step 6. Download and install RoboMongo
As an extra pace I would recommend installing MongoDB management tool, such as RoboMongo, (it's called Robo 3T now) to easily manage MongoDB on your auto. Just create connection and y'all are set to get.
Decision and boosted resources
Hope you lot found this tutorial useful in the process of installing and configuring MongoDB on your Windows automobile with XAMPP.
For the next stride, I recommend checking out the following MongoDB online courses on Pluralsight:
Introduction to MongoDB
MongoDB Assistants
These fantastic courses by Nuri Halperin helped me to learn a lot more than virtually MongoDB.
Source: https://www.learnedia.com/install-mongodb-windows/
Posted by: henryafelf2002.blogspot.com
0 Response to "How To Install Mongodb Php Driver On Windows"
Post a Comment