如何在 Windows 8 和 wamp 服务器上安装 mongodb php 驱动程序? [英] how to instal mongodb php driver on windows 8 and wamp server?

查看:52
本文介绍了如何在 Windows 8 和 wamp 服务器上安装 mongodb php 驱动程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 php 中安装 mongodb 驱动程序.我正在使用 php 版本为 5.5.12 的 wamp 服务器.我已经尝试了很多,但不知道我做错了什么.这是我所做的:

I am trying to instal mongodb driver in php. I am using wamp server with php version 5.5.12. I have tried it alot but don't know what am I doing wrong. Here is what I did:

第一步:我从这个链接下载了mongodb驱动包:http://pecl.php.net/package/mongo/1.5.5/windows我在 PHP 5.5 选项卡下下载了 5.5 Non Thread Safe (NTS) x64.

Step 1: I downloaded the mongodb driver package from this link: http://pecl.php.net/package/mongo/1.5.5/windows I downloaded 5.5 Non Thread Safe (NTS) x64 under PHP 5.5 tab.

第 2 步:我解压下载的文件并将 php_mongo.dll 和 php_mongo.pdb 文件复制到 C:\wamp\bin\php\php5.5.12\ext

Step 2: I unzipped the downloaded file and copied the php_mongo.dll and php_mongo.pdb files into C:\wamp\bin\php\php5.5.12\ext

第 3 步:我在 php.ini 文件中包含了这一行extension=php_mongo.dll".

Step 3: I included this line 'extension=php_mongo.dll' in my php.ini file.

第 4 步:我重新启动了 wamp 服务器.

Step 4: I restarted the wamp server.

完成所有这些后,我仍然无法在 localhost/php.info 中找到 PHP Mongo,这意味着驱动程序尚未安装.我非常需要一些帮助.请逐步告诉我如何在 Windows 上安装 mongodb php 驱动程序?

After doing all this, I am still not able to locate PHP Mongo in localhost/php.info which means the driver has not installed. I badly need some help. please tell me step by step how can I instal mongodb php driver on windows?

推荐答案

我解决了..我所做的只是将 libsasl.dll 文件从 'C:\wamp\bin\php\php5.5.12' 复制并粘贴进入'C:\wamp\bin\apache\apache2.4.9\bin'.

I solved it..all I did was copied the libsasl.dll file from 'C:\wamp\bin\php\php5.5.12' and paste it into 'C:\wamp\bin\apache\apache2.4.9\bin'.

这篇关于如何在 Windows 8 和 wamp 服务器上安装 mongodb php 驱动程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆