Personal Project

Sunday, February 28, 2016

How to setup PHP development for Couchbase ?

// Install PHP Lib for couchbase

gie clone git@github.com:couchbase/php-ext-couchbase.git


// Install couchbase.so

http://packages.couchbase.com/ubuntu/couchbase.key
wget -O http://packages.couchbase.com/ubuntu/couchbase.key
sudo apt-key add
echo "deb http://packages.couchbase.com/ubuntu trusty trusty/main" >> /etc/apt/sources.list.d/couchbase
apt-get update
sudo apt-get install libcouchbase2-core libcouchbase2-libevent libcouchbase2-devel
pecl install couchbase-1.2.5


// Setup  couchbase.so

cd /etc/php5/apache2/conf.d
ln -s ../../mods-available/couchbase.ini 30-couchbase.ini
cd /etc/php5/cli/conf.d
ln -s ../../mods-available/couchbase.ini 30-couchbase.ini


// Check command

php -i | grep ini

 

No comments:

Post a Comment