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