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

前端 未结 3 1439
一个人的身影
一个人的身影 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: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...

提交回复
热议问题