PHP启动:无法初始化模块 [英] PHP Startup: unable to initialize module

查看:729
本文介绍了PHP启动:无法初始化模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的系统中安装mongoDB。按照



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



我下载了 php_mongo.dll 并将其放在 ../ php5.3.0 / ext 文件夹中。然后我添加了 extension = php_mongo.dll 到php.ini。当我重新启动WAMP时,我收到以下错误:

  PHP启动:无法加载动态库php5.3.0 / ext / php_gd2 $ d $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ pre> 中php_mbstring.dll,激活php_mysql.dll,php_mysqli.dll,php_pdo_mysql.dll,php_pdo_sqlite.dll。 

之后,我收到另一个错误:

  PHP启动:Mongo:无法初始化模块
使用build ID = API20090626,TS,VC9
编译的模块使用构建ID = API20090626,TS,VC6编译的PHP 。
这些选项需要匹配。

从网上阅读后,我意识到我必须更改PHP的编译器。有没有人知道如何更新php编译器VC6到php编译器VC9?



我的Apache版本2.2.11
PHP版本5.3.0



谢谢

解决方案

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




  • 下载VC9 x86线程安全(用于PHP作为Apache模块运行)的zip文件。

  • 将zip的内容提取到某处

  • 停止apache

  • 备份您当前PHP目录中的php.ini文件 ../ php5.3.0 /

  • 删除(或备份)您在 ../ php5.3.0 /

  • 中的其余内容提取的内容在 ../ php5.3.0 /

  • php_mongodb.dll ../ php5.3.0 / ext /

  • 将php.ini还回来

  • 重新启动Apache



编辑:

抱歉,要提到,您还需要将其apache安装与 apachelounge 的apache安装一起更换,并将Microsoft 2008 C ++运行时(x86)或Microsoft 2008 C ++运行时(x64)安装,根据我选择哪个版本的备注?在同一页面上 http://windows.php.net/download/


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/

这篇关于PHP启动:无法初始化模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆