Home > Backend Development > PHP Problem > How to install mongo extension in php

How to install mongo extension in php

藏色散人
Release: 2023-03-14 18:44:01
Original
3298 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template