Get the App
SLTechnology News&Howtos  ›  Database  › 

Install the MongoDb driver (PHP)

Shulou Source: shulou.com Published: 2022-06-01 20:34:43 11月16日 Update

MongoDB official description: click to enter

We do not install according to the official practice, but by installing the extended source code.

Address: http://pecl.php.net/package/mongo

My PHP version is 5.2, and I downloaded mongo-1.3.7.tar.

The following is the operation code:

Tar xvf mongo-1.3.7.tarcd mongo-1.3.7/usr/local/php/bin/phpize./configure-with-php-config=/usr/local/php/bin/php-config-enable-mongo makemake install

Open the php.ini configuration file, find extension, and add

Extension = "mongo.so"

Restart the WEB service

The information found through phpinfo

Tags: Official code information practice address file source code version but service configuration driver Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology MariaDB NVidia OPPO Reno vpn