MongoDB PHP Driver

Source: Internet
Author: User
Tags configuration php fpm zend

Installation Method Reference:

http://php.net/manual/en/mongo.installation.php


Tar Driver package Links:

GitHub: Driver Links

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

RPM Driver Package Link: http://downloads-distro.mongodb.org/repo/redhat/os/

Centos,redhat Recommended rpm

How to install the TAR package:

[Email protected]]# TAR-ZXVF mongo-php-driver-1.5.8.tar.gz
[Email protected]]# CD mongo-php-driver-1.5.8
Find your own installed phpize (as determined by your own installation directory)
[email protected] localhost mongo-php-driver-1.5.8]#/usr/local/php56/bin/phpize
Configuring for:
PHP Api version:20131106
Zend Module Api no:20131226
Zend Extension Api no:220131226
[Email protected] mongo-php-driver-1.5.8]#
./configure--enable-mongo=share--with-php-config=/usr/local/php56/bin/php-config
[[email protected] mongo-php-driver-1.5.8]# make
Build complete.
Don ' t forget to run ' make test '.
[[email protected] localhost mongo-php-driver-1.5.8]# make install
Installing Shared extensions:/usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226/
Description installation Successful Next configuration php.ini
Edit PHP.ini Join
Extension=mongo.so
Restart PHP-FPM
Pkill PHP-FPM
/usr/local/php/sbin/php-fpm
Verification: Php–m
Check if the terminal output has MONGO, if yes, prove OK


MongoDB PHP Driver

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.