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.