Skip to content

Instantly share code, notes, and snippets.

@mapsi
Last active December 19, 2015 19:38
Show Gist options
  • Save mapsi/6007668 to your computer and use it in GitHub Desktop.
Save mapsi/6007668 to your computer and use it in GitHub Desktop.
Couchbase PHP extension copy-and-paste quickstart for a standard CentOS 6.2 64bit LAMP stack

#Installing Couchbase PHP extension on CentOS 6.2 64bit

Install libraries and stuff

sudo wget -O/etc/yum.repos.d/couchbase.repo http://packages.couchbase.com/rpm/couchbase-centos62-x86_64.repo  
sudo yum check-update  
sudo yum install -y  libcouchbase2 libcouchbase-devel

Install Couchbase extension

sudo pecl install couchbase

Enable Couchbase extension

sudo sh -c 'echo -e "; Enable Couchbase extension\n; The json extension must be loaded before the couchbase extension\nextension=json.so\nextension=couchbase.so" > /etc/php.d/couchbase.ini'

Restart web server / PHP parser / whatever…

sudo service httpd restart or sudo service php-fpm restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment