How to set MongoDB driver on XAMPP

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 07:02:03

问题


I try to set MongoDB on XAMPP, but don't work :(

I use

Windows 10,

XAMPP v3.2.1

PHP 5.6.8

Which driver I need to download? Thanks to all!! :)

XAMPP INFO: http://oi62.tinypic.com/294qk4k.jpg


回答1:


Check this link to setup MongoDB in xampp.

Configure MongoDB with PHP on windows for XAMPP in 5 simple steps

Also after setting up ,cross check your PHP configuration for following:

Removing the ; from the beginning of

;extension=php_mongo-1.3.1-5.4-vc9.dll 

in your php.ini to enable MongoDB.

Also set extension_dir as absolute path in php.ini

extension_dir = "d:\php-5.4.32\ext"

comment the php_curl.dll module in php.ini

;extension=php_curl.dll



回答2:


I am not sure, if you still need another answer but I guess, I had a similar problem.

I've downloaded the right php_mongodb.dll for my configuration (xampp with PHP 5.6.24, MSVC11, x86 and thread safety enabled) and tried to set up the configuration many times without any changes.

So, I've tried a new php version (xampp with PHP 7.0.18, MSVC14, x86 and thread safety enabled) and I've got all what I've wanted in 5 mins.



来源:https://stackoverflow.com/questions/30801167/how-to-set-mongodb-driver-on-xampp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!