mongodb php.ini 在哪,MongoDB,Windows 7,XAMPP,PHP.ini(MongoDB, Windows 7, XAMPP, PHP.ini)

I am having a lot of trouble getting XAMPP to work with MongoDB on Windows 7.

I'm using XAMPP 1.7.7/PHP 5.3.8.

I have MongoDB setup properly and can query via a shell (and MongoD.exe is running).

But whenever I try to access MongoDB via a PHP script, I get the error (via CodeIgniter):

The MongoDB PECL extension has not been installed or enabled

It does NOT show MongoDB in the extensions when I run phpinfo(). However, I've used the drivers located here https://github.com/mongodb/mongo-php-driver/downloads and added the appropriate lines to php.ini

It seems to me that the server isn't actually reading php.ini. I have tried every version of the 5.3 driver in that zip file and it never loads. There are also no errors in the PHP error log OR the Apache error log.

phpinfo() says it's using the following php.ini files:

> Configuration File (php.ini) Path C:\Windows

> Loaded Configuration File C:\xampp\php\php.ini

There is NOT a php.ini file in C:\Windows. The only php.ini that exists on my machine is in C:\xampp\php\php.ini and modifying it seems to have absolutely no effect. Even if I put extension=norealfilename.abc, it doesn't throw an error, which seems odd.

I'm totally at a loss here and I've lost several days trying to get this going and am beyond frustrated. Any help would be appreciated.

Other relevant phpinfo() information: System Windows NT MY-PC 6.1 build 7601 (Windows 7 Home Premium Edition Service Pack 1) i586 Compiler MSVC9 (Visual C++ 2008) Architecture x86 Thread Safety enabled

If you need more information let me know and I will update this question.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值