I have Laragon with PHP 7.2.11 on Windows 8. How should I install the MongoDB driver? In php.ini
I have put extension=php_mongo_db.dll
, but I don't have the corresponding DLL file, and phpinfo()
it doesn't mention mongo DB anywhere.
I have Laragon with PHP 7.2.11 on Windows 8. How should I install the MongoDB driver? In php.ini
I have put extension=php_mongo_db.dll
, but I don't have the corresponding DLL file, and phpinfo()
it doesn't mention mongo DB anywhere.
I have the same setup and platform as you. The first launch a
phpinfo()
and look for the keyThread Safe
. If it puts you enabled, search https://pecl.php.net/package/mongodb/1.6.1/windows for packages 7.2 Thread Safe (TS) x64 or 7.2 Thread Safe (TS) x86 (depends on whether your processor is 64-bit or 32-bit (if you have Windows 8, it's most likely 64).If you do
Thread Safe
n't see enabled when searching, the 7.2 Non Thread Safe (NTS) x64 or 7.2 Non Thread Safe (NTS) x86phpinfo()
packages are listed at the same URL .In my case the correct package was 7.2 Thread Safe (TS) x64 . Download it, and open it with 7zip, or some other similar tool. Copy the php_mongodb.dll file to the PHP ext directory . Since you mention that you already have the extension enabled in php.ini , just restart Apache. In
phpinfo()
you will now see all the information of the MongoDB driver.