Configuring the PHP and MongoDB databases on Windows

Source: Internet
Author: User
Tags mongodb

For different thread-safe, VC versions of the PHP release, you can get the precompiled binaries from PECL. Unpack and place the Php_mongo.dll in the PHP extension directory (the default is "ext").

Add the following content to the php.ini file:

Extension=php_mongo.dll

Note: Add additional dependent DLLs for Windows users

For this extension to take effect, the DLL file must be found in the path indicated by the Windows system. In my system, I was doing this:

Add the PHP installation directory to the system path, as shown in the following illustration:


Although it is also OK to copy the DLL files from the PHP folder to the Windows system directory, this is not recommended. This extension requires the following files in the path path: Libsasl.dll


Restart the Apache service. Test is configured successfully.

<?php
phpinfo ();
? >

The successful configuration of my computer is shown in the following illustration:




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.