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
Display Float Value W/O Scientific Notation
Extending the Controller Class in Codeigniter
Using PHP Variables Inside HTML Tags
Serve Image with PHP Script VS Direct Loading an Image
How to Generate Random Date Between Two Dates Using PHP
Generating Xml Document in PHP (Escape Characters)
Apache Rewrite - Get Original Url in PHP
Laravel 5.3 Auth Check in Constructor Returning False
How to Use .Htaccess to Hide .PHP Url Extensions
Create Programmatically a Variable Product and Two New Attributes in Woocommerce
iPhone Emoticons Insert into MySQL But Become Blank Value
Check for Consecutive Dates Within a Set and Return as Range
PHP Attaching an Image to an Email
How to Convert Output of Number_Format Back to Numbers in PHP