Troubleshooting “mongo not found” and “php_mongo.dll is not a win32 application” errors

前端 未结 3 1407
一个人的身影
一个人的身影 2021-01-25 17:01

I have been trying to install mongo for over 6 hours now and still have not gotten it to work. I am going to make this very detailed so that hopefully someone will help me get

相关标签:
3条回答
  • 2021-01-25 17:44

    PHP driver for Mongo DB is not currently working for 64bit wamp (you can keep your OS 64bit). Basically what you need to do:

    1. install 32 bit WAMP

    2. add PHP mongo driver "php_mongo-1.3.2RC1-5.4-vc9.dll", ts(thread safe) to php ext foldr download: https://s3.amazonaws.com/drivers.mongodb.org/php/index.html

    3. rename "extension=php_mongo.dll" to "php_mongo.dll" and add extension=php_mongo.dll to php.ini in your server

    0 讨论(0)
  • 2021-01-25 17:52

    Solved:

    My operating system is 32 bit Windows 7 I did the following to add the mongoDb extension into my php: 1. Used: https://s3.amazonaws.com/drivers.mongodb.org/php/index.html
    2. Downloaded: php_mongo-1.5.1.zip and unzip the file which contains the binaries for different PHP versions.
    3. Copy php_mongo-1.5.1-5.4-vc9.dll to C:\wamp\bin\php\php5.4.3\ext as php_mongo.dll
    4. Added the following line in php.ini
    extension=php_mongo.dll
    5. Restart my wamp server
    Used localhost/?phpinfo=1 to see the installed extension. It works fine.

    First I tried php_mongo-1.5.5.zip to do the same but it was not working then successfully configured with php_mongo-1.5.1.zip.

    Cheers...

    0 讨论(0)
  • 2021-01-25 18:01

    Ok so after hours and hours of searching for an answer to my original question which was:

    I am running a 64 bit machine with a 64 bit wamp stack but mongodb will not work in wamp 64 bit, how do i get all this working?

    I finally just uninstalled wamp 64 bit and downloaded wamp 32 bit onto my windows 64 bit machine. I then downloaded the mongo 64 bit version and everything is working fine.

    0 讨论(0)
提交回复
热议问题