开发者

How can I get MongoDB working with php 5.3.5 & wamp?

开发者 https://www.devze.com 2023-04-05 12:14 出处:网络
I keep receiving this error (from the apache log) and I cannot get the php_mongo.dll module loaded with the 32bit versions of both mongo and wamp.

I keep receiving this error (from the apache log) and I cannot get the php_mongo.dll module loaded with the 32bit versions of both mongo and wamp.

PHP Warning:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.5/ext/php_mongo.dll' - The specified module could not be found.\r\n in Unknown on line 0
<br />
<b>Warning</b>:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.5/ext/php_mongo.dll' - The spe开发者_如何学运维cified module could not be found.
in <b>Unknown</b> on line <b>0</b><br />

Whats most frustrating is the fact that I can see the file sitting in the exact directory the error message is telling me it can't find it! I've rechecked the php.ini edits were correct, but I still can't get the module to load when php starts up. Any ideas what the '\r\n in Unknown on line 0' may correspond to?

php 5.3.5 apache 2.2.17 windows 7

Thanks!


Make sure you use the thread safe version of the mongodb extension plugin. I stumbled upon the exact same errors while using the non-thread-safe versions.

To download the right extension, see: http://www.php.net/manual/en/mongo.installation.php#mongo.installation.windows

Most likely you'll need the VC9 (Thread Safe) version.


php_mongo-1.4.3-5.3-vc9-x86_64.dll worked for me on wamp 2.2, PHP 5.3.8, Windows 7 64bit

These newer versions

php_mongo-1.4.3-5.5-vc11-x86_64.dll

php_mongo-1.4.3-5.4-vc9-x86_64.dll

didn't work for me. They gave the same error: 'Unable to load dynamic library - The specified procedure could not be found'.

Also - make sure the MongoDB database process is running per this webpage: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/


I got same error in xampp. I have tried with older version of thread safe mongodb and it worked.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号