PHP Add MongoDB Extension

Source: Internet
Author: User
Tags php mongodb zts
PHP MongoDB Extension Installation
[root@a5139 ~]# wget http://pecl.php.net/get/mongo-1.3.4.tgz
[root@a5139 ~]# tar zxvf mongo-1.3.4.tgz
[root@a5139 ~]# CD mongo-1.3.4
[root@a5139 mongo-1.3.4]#/usr/local/php/bin/phpize
Configuring for:
PHP Api version:20041225
Zend Module Api no:20060613
Zend Extension Api no:220060519
[root@a5139 mongo-1.3.4]#./configure–with-php-config=/usr/local/php/bin/php-config
[root@a5139 mongo-1.3.4]# make && make install
Installing Shared extensions:/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/

[root@a5139 mongo-1.3.4]# ls/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/
memcache.so mongo.so pdo_mysql.so
[root@a5139 mongo-1.3.4]# Vi/usr/local/php/etc/php.ini
#加入

Extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/"
#extension = "Memcache.so"
#extension = "Pdo_mysql.so"
Extension = "mongo.so"
  • 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.