Home>Article>Backend Development> How to install mongo extension in php

How to install mongo extension in php

藏色散人
藏色散人 Original
2022-01-10 09:36:50 3162browse

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.

How to install mongo extension in php

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn