Install the MongoDb driver (PHP)
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