Install MongoDB driver for PHP in Xampp under Ubuntu

Source: Internet
Author: User
Tags install mongodb mongodb driver

The XAMPP referred to here are: XAMPP

The specific configuration environment:

  • Kubuntu 14.04LTS 64bit
  • Lampp 1.8.3-4

First, get the latest source of MongoDB PHP driver from GitHub: Https://github.com/mongodb/mongo-php-driver

Before you follow the prompts, install the following dependencies:

sudo apt-get install install m4

sudo apt-get install autoconf

sudo apt-get install libssl-dev

Then, follow the project documentation:

phpize

./configure

make

sudo make install

Note that if the hint is not found phpize , you need to add the relevant execution file in Xmapp to the environment variable. or directly specify if XAMPP is installed in the/OPT directory, the directory is phpize /opt/lampp/bin/phpize .

Then, you php.ini can add the appropriate configuration:
extension=mongo.so

You can query the location of php.ini with the following command:
php -i | grep php.ini

Install MongoDB driver for PHP in Xampp under Ubuntu

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.