我是MongoDB的新手,并按this进行安装。在我的phpinfo
中,我可以在mongodb
,Apache Environment
和Environment
下看到PHP Variables
。当我尝试启动MongoDB服务时,它会在screensshot
我也看不到它像下面那样安装
我的DLL
文件是php_mongo-1.5.5-5.4-vc9-x86_64
,MongoDB是从here安装的
PHP Version 5.4.3
Compiler MSVC9 (Visual C++ 2008)
Architecture x86
System Type 64 bit
有人可以指导我如何用PHP安装MongoDB
感谢。
答案 0 :(得分:0)
感谢您的回复。我解决了我的uninstalling
MongoDB服务,然后又安装了相关版本。
源代码问题是以前的MongoDB
版本而不是最新版本,并且以某种方式删除了包含旧版本的文件夹,从而为source path not found
抛出了异常。
此外,从here下载的DLL
文件php_mongo-1.5.5-5.4-vc9.dll
用于以下配置
PHP Version 5.4.3
Compiler MSVC9 (Visual C++ 2008)
Architecture x86
System Type 64 bit
希望它有所帮助。