Install MongoDB extensions under Windows

Source: Internet
Author: User
Tags install mongodb mongodb

A few days ago the boss let us learn MongoDB, I am in the Windows environment to install MongoDB extensions encountered some problems, now share the solution, together to learn.

1, first check your PHP version ( in the php file Output phpinfo () ), and confirm that it is thread-safe or not thread-safe (my thread-safe VC6)

My integrated Environment XAMPP version is 1.8.3

php for 5.5.1

2, extended download Address: http://pecl.php.net/package/mongo/1.6.0RC2/windows (choose to match their version of the download)

3, will download a good package of files will be Php_mongo.dll file into your local installation xampp directory/php/ext folder

4. Modify php.ini File Search Extension=php_xsl.dll Add extension=php_mongo.dll code below this code

5, at this time has installed a good extension, but the run-time error, because PHP support for MongoDB need to rely on 3 dynamic link library: Libeasy32.dll, Libsasl.dll, Ssleay32.dll, because Libsasl.dll can not find the error

Corresponding solution: Copy yourself php folder under Libsasl.dll put it under your Apache folder under the Bin folder and restart Apache


By this time you have installed the MongoDB extensions and check your PHP version to see

It means that you have been installed successfully.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.