Install MongoDB ZK MEMCACHE PHP extension on Linux

Source: Internet
Author: User
Tags install mongodb zookeeper

To install the MONGO extension:

: https://github.com/mongodb/mongo-php-driver, download the source package

/USR/LOCAL/PHP/BIN/PECL Install MONGO

Install ZK extensions:

1. Installing Libzookeeper

cd/usr/local/src/zookeeper-3.4.6/src/C. /configure--prefix=/usr/local/zookeepermakemake Install

2. Install the PHP ZK extension

cd/usr/local/src/wget http://pecl.php.net/get/zookeeper-0.2.2. tgz tar xf zookeeper-0.2.2. TGZCD Zookeeper-0.2.2phpize. /configure--with-php-config=/usr/local/php/bin/php-config--with-libzookeeper-dir=/usr/local/zookeeper/  Makemake Install

To install the memcache extension:

Tar XF memcache-2.2.7. TGZCD memcache-2.2.7/usr/local/php/bin/phpize. /configure--enable-memcache--with-php-config=/usr/local/php/bin/php-configmakemake Install

To install the Redis extension:

Tar XF phpredis-2.2.4. tar.gz cd Phpredis-2.2.4/usr/local/php/bin/phpize. /configure--with-php-config=/usr/local/php/bin/php-configmakemake Install

php.ini file Add:

extension=mongo.soextension=redis.soextension=zookeeper.soextension==/usr/ local/php-5.5.22/lib/php/extensions/no-debug-non-zts-20121212/202 Short_open_tag = On

Install MongoDB ZK MEMCACHE PHP extension on Linux

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.