我想使用MongoDB
与PHP5.5
在Wampserver 2.5
,但我无法得到它的工作。我已经使用this教程设置了MongoDB 2.6.3配置文件,并运行了mongod.exe --install --config 'config_path'
,并添加了环境变量的路径,似乎MongoDB服务已安装并且工作正常。我还将线程安全的mongodb php驱动程序复制到php的ext
文件夹中,并将extension=php_mongo.dll
添加到php.ini
文件中的apache/apache2.4.9/bin/
和php/php5.5.12
文件夹中。当我在php_mongo
扩展名旁边运行wampserver there's a warning sign时。问题是我已经尝试安装x64版本的wampserver和MongoDB,但没有任何区别,并且在与此问题相关的日志中没有发现任何错误。MongoDB的PHP扩展不能在Windows 7上工作
我也读过使用非线程安全版本的驱动程序修复了这个问题。
The program can't start because php5.dll is missing from you computer.
Try reinstalling the program to fix this problem.
PHP Startup: Unable to load dynamic library
'c:/wamp/bin/php5.5.12/ext/php_mongo.dll' - The specified module could not be found.
这里的软件的集合,我使用:
- Windows 7旗舰版64位
- Wampserver 2.5 x86版但是当我使用它,而开始wampserver我得到这个错误(PHP 5.5.12)
- MongoDB的Win32的i386-2.6.3(x86)的
- php_mongo-1.5.4-5.5-vc11.dll PHP驱动
而刚刚提到,在mongodb的安装在c:\mongodb\
和wampserver安装在c:\wamp
我感谢有这方面的帮助。
编辑:问题并没有消失,所以我不得不寻找另一个网站服务器,我发现zWamp这是一个PHP/MySQL的/阿帕奇/ MongoDB的堆栈和它的作品!
你没有提到你的PHP版本是nts或ts? –
@AmolMKulkarni在phpinfo中它表示线程安全已启用。 – Nojan
什么是'php_mongo-1.5.4-5.5-vc11-x86_64.dll'出来的? –