Linux installation PHP MongoDB driver _linux

Source: Internet
Author: User
Tags fpm install mongodb mongodb mongodb driver mongodb server php mongodb

PHP is conducive to learning, widely used, mainly applicable to the field of web development.

The main goal of MongoDB is to set up a bridge between key/value storage (high performance and high scalability) and traditional RDBMS systems (rich functionality), combining the advantages of both.

Using MongoDB in PHP you have to use the MongoDB PHP driver.

This article is a small compilation in the deployment of production environment when the simple record.

1. Download the PHP MongoDB driver installation package mongodb-1.1.9.tgz

wget https://pecl.php.net/get/mongodb-1.1.9.tgz

2. Decompression Drive Installation Package

Tar zxf./mongodb-1.1.9.tgz

3. Installation drive

PECL Install MongoDB

4. Add in PHP.ini

extension= "Mongodb.so"

5. Restart PHP-FPM

/ETC/INIT.D/PHP-FPM restart

To do this, you can use the MongoDB drive normally, and remember to turn the MONGODB server on when you use it.

The above is a small set to introduce the Linux installation of PHP MongoDB driver, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.