Installation Environment:
Windows 7 64bit
PHP 5.5.12
Confirm Environment Parameters:
1. View compiler in Phpinfo ()
2. Check the thread safety in phpinfo () to see if threads are safe
After confirming these two parameters, it is helpful to select the extension file for MongoDB.
Installation steps:
Now it's time to start downloading the corresponding version of MongoDB!
1. Website download file Address: http://windows.php.net/downloads/pecl/releases/mongo/
2. Select the 1.6.10, and select the corresponding version according to the environment, to download; 3. Copy the Php_mongo.dll file from the compressed file to the extension file ext of the local PHP and add the new extension code to the php.ini file under Apache:
Extension=php_mongo.dll;
Note: The extension filename is consistent with the name of the extension file added in the second step; Wamp Add the configured php.ini file in the Apache directory, other environments are built according to the actual situation. 4. Due to the need to rely on Libsasl.dll file for MongoDB expansion, see the PHP User manual for additional methods:
5. The file directory is configured in the root directory of the PHP installation file as follows:
5. Restart the WAMP server and search for MongoDB in Phpinfo () to see the following information:
Wamp installation increases MongoDB expansion and installation