logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: PHP module for Apache won't load php_mongodb.dll
Author
daniel_g



Joined: 16 Jul 2017
Posts: 2
Location: USA, Riverside

PostPosted: Sun 16 Jul '17 22:08    Post subject: PHP module for Apache won't load php_mongodb.dll Reply with quote

My PHP module for Apache won't load php_mongodb.dll, but it loads other extensions. However, php_mongodb.dll is successfully loaded by PHP on the command line. I'd like to figure out why.

Apache version: httpd-2.4.27-Win64-VC15
operating system: Windows 10 Home x64
indication in log file:
error.log:
Quote:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_mongodb.dll' - The specified module could not be found.\r\n in Unknown on line 0

PHP version: php-7.1.7-Win32-VC14-x64
MongoDB driver for PHP version: php_mongodb-1.2.9-7.1-ts-vc14-x64

Code:
C:\php>php -m | findstr mongodb
mongodb
Back to top
daniel_g



Joined: 16 Jul 2017
Posts: 2
Location: USA, Riverside

PostPosted: Mon 17 Jul '17 3:46    Post subject: Spontaneous resolution Reply with quote

The extension just spontaneously started working. I cannot figure out why.

Also, I apologize because after more thought, it occurred to me that the problem was probably to do with the PHP module rather than Apache httpd.

Sorry for the needless post.
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 1266
Location: Amsterdam, NL, EU

PostPosted: Mon 17 Jul '17 10:42    Post subject: Reply with quote

php_mongodb.dll depends on libeay32.dll, ssleay32.dll and libsasl.dll. If one of those three cannot be found or is the wrong version you'll get the error mesaage 'cannot be found'. Ir is always a bit tricky if you run php with mod_php. The dll's have to be the same in the php-directory and in the apache\bin directory. Or they have to be in the path.
Back to top


Reply to topic   Topic: PHP module for Apache won't load php_mongodb.dll View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules