0
votes

I am using Windows 7 x64 with PHP 5.5.12 plus.

I am receiving the following error:

line 862 "extension=php_mongo.dll" and the ext_dir "extension_dir = "c:/wamp/bin/php/php5.5.12/ext/""

I placed php_mongo-1.6.8-5.5-vc11-x86_64.dll inside said directory and renamed it tophp_mongo.dll, restarted without problems. Placed it online, also, without problems.

However it is still not installed, tried a full computer restart, neither worked, and not placed in phpinfo().

Using 1.6.10 version, will also give the same results.

EDIT: the error:

[18-Aug-2015 07:10:55 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

in Unknown on line 0

[18-Aug-2015 07:10:55 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.

in Unknown on line 0

[18-Aug-2015 07:10:55 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_mongo.dll' - The specified module could not be found.

in Unknown on line 0

[18-Aug-2015 07:10:56 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

in Unknown on line 0

[18-Aug-2015 07:10:56 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.

in Unknown on line 0

[18-Aug-2015 07:10:56 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_mongo.dll' - The specified module could not be found.

in Unknown on line 0

[18-Aug-2015 07:13:12 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

in Unknown on line 0

[18-Aug-2015 07:13:12 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.

in Unknown on line 0

[18-Aug-2015 07:13:12 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_mongo.dll' - The specified module could not be found.

in Unknown on line 0

[18-Aug-2015 07:13:12 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

in Unknown on line 0

[18-Aug-2015 07:13:12 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.

in Unknown on line 0

[18-Aug-2015 07:13:12 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_mongo.dll' - The specified module could not be found.

in Unknown on line 0

http://i.imgur.com/YGvLRiC.png image of php just pulling bullshit as usual (everything is there, tried read only and without read only.) Apparently php cannot find ANY module, even if they're ticked on wamp's menus.

EDIT2: After adding libsasl.dll to apache's directory following PHP Startup Unable to load dynamic library php_mongo.dll instructions the error changes into:

[18-Aug-2015 07:36:39 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_mongo.dll' - %1 is not a valid Win32 application.

in Unknown on line 0

1

1 Answers

0
votes

Are you using the thread-safe or non-thread-safe PHP build? I tried to reproduce the error on my Windows 7 build, which has thread-safe PHP installed, and it wouldn't work with the nts MongoDB driver, but the thread-safe one worked fine.

In short: Be sure to use the driver with 'nts' in the name if you're running the non-thread-safe PHP build.

Hope this helps!