Home > Article > Backend Development > How to install mongodb extension in php7
How to install mongodb extension in php7: first download "mongodb-1.6.0.tgz"; then enter "mongodb-1.6.0"; finally modify php.ini and restart.
The operating environment of this article: linux5.9.8 system, PHP7.0&&mongodb1.6.0 version, DELL G3 computer
PHP7 Install MONGODB extension
Download mongodb-1.6.0.tgz wget https://pecl.php.net/get/mongodb-1.6.0.tgz If the version is too low, some syntax is different, at least 1.5 or above
Enter mongodb-1.6.0
/www/server/php/70/bin/phpize && ./configure --with-php-config=/www/server/php/70/bin/php-config make && make install
Modify php.ini
Restart
Done!
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to install mongodb extension in php7. For more information, please follow other related articles on the PHP Chinese website!