How to Install CouchBase 2.0.1 Enterprise Server on Centos with php-ext-couchbase.


Tapas Mishra

Couchbase is a simple, fast and elastic document-oriented database.

Installing Couchbase 

# yum -y groupinstall "Development Tools"
# yum -y install openssl098e
# wget http://packages.couchbase.com/releases/2.0.1/couchbase-server-enterprise_x86_64_2.0.1.rpm
# rpm --install couchbase-server-enterprise_x86_64_2.0.1.rpm
Browse the URL : http://localhost:8091/ and finish the installation steps.(Will post these steps with all imagest very soon :))

Installing PHP

# yum -y install php
# yum -y install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-eaccelerator php-magickwand php-magpierss php-mapserver php-mbstring php-mcrypt php-mhash php-mssql php-shout php-snmp php-soap php-tidy

Installing php-ext-couchbase

# wget -O /etc/yum.repos.d/couchbase.repo http://packages.couchbase.com/rpm/couchbase-centos62-x86_64.repo
# yum install -y libcouchbase2 libcouchbase-devel libcouchbase2-libevent
# 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
# cd php-ext-couchbase
# cp couchbase.so /usr/lib64/php/modules
# echo "extension=couchbase.so" >> /etc/php.d/josn.ini
# /etc/init.d/httpd restart

To verify the php extension

# php -m | grep couchbase
Output: couchbase

Some basic usage:

Let’s create 10 JSON documents and store them in Couchbase:

<?php $connection = new Couchbase("127.0.0.1:8091"); for($i=0;$i<10;$i++) { $doc =…

View original post 55 more words

Advertisements

One thought on “How to Install CouchBase 2.0.1 Enterprise Server on Centos with php-ext-couchbase.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s