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: