

- #INSTALL COUCHBASE UBUNTU SUDO MAC OS#
- #INSTALL COUCHBASE UBUNTU SUDO INSTALL#
- #INSTALL COUCHBASE UBUNTU SUDO UPDATE#
- #INSTALL COUCHBASE UBUNTU SUDO MANUAL#
Create, update and delete actions are done through the memcached protocol. Couchbase uses both methods, depending on the task you want to accomplish. Historically, communication with CouchDB was done over pure HTTP while memcached provided a custom protocol.

Note that for the rest of this post I’ll use the API provided by the php-ext-couchbase extension, but the one for php-couchbase shouldn’t be much different.
#INSTALL COUCHBASE UBUNTU SUDO INSTALL#
This SDK extends the memcached extension, which you can install directly through apt: $ sudo aptitude install php5-memcachedĭocumentation for the PHP 1.1 SDK can be found here. If you want to work with the current stable SDK, you need to download the code from the php-couchbase repository. Of course you’ll need to restart your webserver or your fastcgi processes too. Now we can see that the couchbase extension is installed correctly: $ php -m | grep couch The last thing we need to do is create a new couchbase.ini file in /etc/php5/conf.d with the following content: extension=couchbase.so Installing shared extensions: /usr/lib/php5/20090626+lfs/ $ cd couchbaselabs-php-ext-couchbase-2680b64 $ unzip couchbaselabs-php-ext-couchbase-2680b64.zip Now, we need to download the extension and build it. $ sudo aptitude update & sudo aptitude install libcouchbase-dev Then, import the key, update your repositories and install the package: $ wget -O- | sudo apt-key add. The extension also depends on the libcouchbase library, which can be installed through the Couchbase repository (for more information on this, look here).Īdd this to your /etc/apt/sources.list: # Ubuntu 11.10 Oneiric Ocelot (Debian unstable) On Ubuntu it looks like this: $ sudo aptitude install libssl0.9.8 php5-dev php-pear Make sure you have both the build tools (like build-essentials) and the PHP development packages ( php5-dev php-pear) installed. The new PHP SDK ships as a PHP extension, so we need to compile it. $ sudo dpkg -i couchbase-server-community_x86_2.0.bĪfter the installation, you should have a Couchbase instance listening on 127.0.0.1:8091. For the purpose of this post, you can just stick with the default settings. I recommend you to watch the webinar starting from minute 7 here, where Perry Krug describes the necessary steps in detail. Then configure Couchbase from a web interface. The installation process is really straightforward: you first need to install the binary and
#INSTALL COUCHBASE UBUNTU SUDO MAC OS#
The easiest way to install Couchbase is through a precompiled binary for Ubuntu, RedHat, Windows or Mac OS X. The rest of this post guides you through the installation process of both Couchbase and the PHP SDKs. He also mentioned that this extension is theįuture way of interacting with Couchbase, so it is definitely worth a look.

Note that it doesn’t support working with views currently, but according to janl this will be available in a few days. When it comes to PHP SDKs, you should either use the more feature-complete php-couchbase SDK (which is based on pecl/memcached) or work the brand new php-ext-couchbase extension. Now as the dust has settled a bit, here’s what I’ve come up with:Ĭouchbase 2.0 will be the next major version and is already pretty stable, so I’ll jump straight onto it and skip 1.8.
#INSTALL COUCHBASE UBUNTU SUDO MANUAL#
The full manual is available here.Īs there were a lot of merges, renamings and releases, it was pretty hard to follow up with the current/best database version and SDK to use for your project. If you haven’t heard much about Couchbase yet, start at the Couchbase Webinar Series, which will get you up to speed. The current version is 1.8 and the 2.0 version is already in a developer preview release. It is the product of a merge between the companies behind Memcached (Membase) and CouchDB. Couchbase is a simple, fast and elastic document-oriented database.
