#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