duanfu3634 2015-08-21 07:13
浏览 425
已采纳

为php 5.6添加mongodb扩展(XAMPP)

I have read few post here on solving my issue but neither works for php-5.6.

I downloaded php_mongo-1.6.8.zip and php_mongo-1.6.7.zip and tried all the .dll extensions and all of them gives one or the other error.

Error message:

  1. PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_mongo-1.6.8-5.6-vc11-x86_64.dll' - %1 is not a valid Win32 application.

    in Unknown on line 0

  2. PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_mongo-1.6.8-5.6-vc11.dll' - The specified module could not be found.

    in Unknown on line 0

P.S.: I am using XAMPP for my environment.

  • 写回答

4条回答 默认 最新

  • duanbei3747 2015-09-01 20:01
    关注

    I installed mongo extension with following steps:

    Without further configuration, I see mongo extension in command line (C:\xampp\php\php.exe -i | findstr mongo) but Apache complains about missing libsasl.dll and mongo is missing in http://localhost/dashboard/phpinfo.php. Ok, what next?

    • Copy C:\xampp\php\libsasl.dll to C:\xampp\apache\bin\, restart Apache and enjoy.

    This howto worked for me well. I hope it will help to resolve your issue.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog