开发者

PHP Startup: unable to initialize module

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


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

  • Download the zip file for VC9 x86 Thread Safe (which is for PHP run as Apache module).
  • Extract the contents of the zip somewhere
  • Stop apache
  • Backup the php.ini file you have in your current PHP directory ../php5.3.0/
  • Delete (or backup) the rest of the contents you have in ../php5.3.0/
  • Place the extracted content in ../php5.3.0/
  • Put php_mongodb.dll in ../php5.3.0/ext/
  • Put php.ini back also
  • Restart Apache

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/


For time being, check which module is in warning message, just go to php.ini file and comment it. This could work

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜