Home>Article>Backend Development> How to install mongo extension in php
How to install mongo extension in php: 1. Download the extension corresponding to the PHP version; 2. Place php_mongodb.dll in the ext folder of the php directory; 3. Add "extension=" in the php.ini file php_mongodb.dll"; 4. Restart the service.
The operating environment of this article: Windows 7 system, mongodb version 1.6, Dell G3 computer.
How to install mongo extension in php?
php Install mongodb extension:
Visit https://pecl.php.net/package/mongodb to download the extension corresponding to the PHP version. The version may be incorrect. The configuration will not be successful.
After downloading, place php_mongodb.dll in the ext folder of the php directory
In php.ini Add extension=php_mongodb.dll
to the file. Restart the service and open phpInfo.php
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to install mongo extension in php. For more information, please follow other related articles on the PHP Chinese website!