Php-ext-couchbase-1.1.2-ubuntu1110 - "Failed to create libcouchbase instance"

You must not use administrator account for data operations. Here “administrator account” is the credentials you are using when configuring cluster (adding new nodes). By default this account named “Administrator”, but it is possible to change this name.

What you should do is use bucket-password specified when you create buckets. And as the username, you can pass the bucket name. Currently you cannot change this through web UI, so yes, it means, you have to use the same name as bucket name. The libcouchbase can pick bucket name as username if you will pass NULL there, I’m not sure if php client allows passing NULL as username. The following code shows how to do it.

$cb = new Couchbase("127.0.0.1:8091", "mybucket", "password", "mybucket"); $cb = new Couchbase("127.0.0.1:8091", NULL, "password", "mybucket");