Reputation: 1291
i'm trying to install mongoDB in my system. As instructed in
http://www.mongodb.org/display/DOCS/PHP+Language+Center,
I downloaded php_mongo.dll
and put it in ../php5.3.0/ext
folder. Then I added extension=php_mongo.dll
to php.ini. When I restarted WAMP, I got the following errors:
PHP Startup: unable to load dynamic library php5.3.0/ext/php_gd2.dll
and the same error for
php_mbstring.dll,php_mysql.dll,php_mysqli.dll,php_pdo_mysql.dll,php_pdo_sqlite.dll.
After that, I got another error:
PHP Startup: Mongo: Unable to initialize module
Module compiled with build ID=API20090626, TS, VC9
PHP compiled with build ID=API20090626, TS, VC6.
These options need to match.
After some reading up from the net, I realize that I have to change the compiler for PHP. Does anyone know on how to update php compiler VC6 to php compiler VC9?
My Apache version 2.2.11 PHP version 5.3.0
thank you
Upvotes: 4
Views: 16959
Reputation: 11
For time being, check which module is in warning message, just go to php.ini file and comment it. This could work
Upvotes: 0
Reputation: 22773
http://windows.php.net/download/
../php5.3.0/
../php5.3.0/
../php5.3.0/
php_mongodb.dll
in ../php5.3.0/ext/
edit:
Sorry, I forgot to mention that you also need to replace your apache install with the one from apachelounge as well, and have Microsoft 2008 C++ Runtime (x86) or the Microsoft 2008 C++ Runtime (x64) installed, as per the remarks in "Which version do I choose?" on the same page http://windows.php.net/download/
Upvotes: 4