Come installare la libreria Couchbase per php

Home  >>  Couchbase News  >>  Come installare la libreria Couchbase per php

Come installare la libreria Couchbase per php

On settembre 24, 2014, Posted by , In Couchbase News, With No Comments

Per il nostro amico Alessandro …  :) :) :)

che sta impazzendo con l’ installazione dell’ SDK …

 

wget -O /etc/yum.repos.d/Couchbase.repo http://packages.couchbase.com/rpm/couchbase-centos62-x86_64.repo
Install the Couchbase Libraries

yum install -y libcouchbase2 libcouchbase-devel
Now let’s get the actual php module file for apache

cd /root
wget http://packages.couchbase.com/clients/php/php-ext-couchbase-1.1.2-centos62-x86_64.tar.gz

tar -xvf php-ext-couchbase-1.1.2-centos62-x86_64.tar.gz

cp php-ext-couchbase/couchbase.so /usr/lib64/php/module
Edit the php.ini

echo “extension=json.so” >> /etc/php.ini
echo “extension=couchbase.so” >> /etc/php.ini
Restart Apache

Comments are closed.