PHP's MongoDB extension installation

Source: Internet
Author: User
Tags php mongodb
1. First download the PHP mongodb extension from this URL to download MongoDB extension source package from Http://pecl.php.net/package/mongo this URL to download MongoDB extension source Package wget/HTTP PECL.PHP.NET/GET/MONGO-1.4.5.TGZ2. Unpacking the installation package tar zxf mongo-1.4.5.tgz3. Go to the Unzip directory, run the Phpize for installation preparation CD mongo-1.4.5/usr/local/php /bin/phpize4. After the installation compiles the above command, the Configure file is generated in the directory using the./configure command for the installation configuration, and then the build is installed using make && makes install, with the following command:./ Configuremake && make install5. Edit adds the following line add MongoDB extension [PHP] under Add extension= mongo.so Restart the Apache container, and then look at the phpinfo and see the contents of MongoDB to indicate that the installation was successful.


PHP's MongoDB extension installation

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.