Running PHP: Cannot Initialize a Module

I am trying to install mongoDB on my system. As indicated in

http://www.mongodb.org/display/DOCS/PHP+Language+Center ,

I downloaded php_mongo.dlland placed it in a folder ../php5.3.0/ext. Then I added extension=php_mongo.dllin php.ini. When I restarted WAMP, I received the following errors:

PHP Startup: unable to load dynamic library php5.3.0/ext/php_gd2.dll

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 from the net, I understand that I need to change the compiler for PHP. Does anyone know how to update the php compiler of the VC6 compiler for the php VC9 compiler?

My Apache version 2.2.11 PHP version 5.3.0

Thank you

+4
source share
2 answers

http://windows.php.net/download/

  • zip VC9 x86 Thread Safe ( PHP Apache).
  • zip -
  • apache
  • php.ini PHP ../php5.3.0/
  • ( ) , ../php5.3.0/
  • ../php5.3.0/
  • php_mongodb.dll ../php5.3.0/ext/
  • php.ini
  • Apache


, , apache apachelounge, Microsoft 2008 ++ Runtime (x86) Microsoft 2008 ++ Runtime (x64), " ?". http://windows.php.net/download/

+4

, , php.ini .

0

All Articles