PHP Startup Unable to Load Dynamic Library PHP_Mongo.Dll

PHP Startup Unable to load dynamic library php_mongo.dll

Make sure you download the correct .DLL for your PHP installation. Good chance you're running apache x86, so download an x86 php_mongo.dll. Also if you're running PHP as an Apache module, make sure you pick the thread safe (ts) one and also pick this type of dll that matches the PHP version you're running.

The versions must match or else you will get a php startup error. Find these Mongo DLLs here.

I did this then I got an error libsasl.dll not found. I simply copied the libsasl.dll found in my PHP installation directory to the Apache installation directory (where httpd.exe is found). Then I restarted my Apache and it worked!

PHP Startup: Unable to load dynamic library 'php_mongodb.dll'

Problem resolved.

Cause: I was using Non Thread Safe php_mongodb.dll, while the PHP installed by XAMPP is a Thread Safe one.

After replacing php_mongodb.dll with the thread safe version, there's no error and I can successfully completed composer installation.

PHP Startup Unable to load dynamic library php_mongodb.dll

I don't know why but I downloaded the file again and replaced the already present file and everything started to work. Wired but this helped me

How do I fix PHP Warning: PHP Startup: Unable to load dynamic library 'mongodb'

I'm answering my own question here. Turns out my xampp version was x86 and so x64 version of the dll would obviously not work... Solution was to just use x86 version of the dll instead.

Windows MongoDB PHP extension not load

To solve this, need to copy some .dll files from PHP install to Apache install, hope to help someone! Reference



Related Topics



Leave a reply



Submit