Search:

Search all manuals
Search this manual
Manual
Couchbase Client Library: PHP 1.0
Community Wiki and Resources
Wiki: PHP Client Library
PHP Client Library
SDK Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
1 Getting Started
Chapter Sections
Chapters

1.1. Downloading and Installation

1.1.1. Verify the SDK Install

Follow these steps to install and set up the PHP SDK:

  1. Download the SDK for your system from the SDK page.

  2. Unpack the archive containing the SDK:

    shell> tar xzf php-ext-couchbase-$system-$arch.tar.gz

    The resulting directory includes a file couchbase.so which is the PHP extension for the SDK. Note the path to this file.

  3. Find the php.ini file for your PHP interpreter. Try:

    shell> phpi -i | grep ini

    The output provided will have configuration file that is loaded for PHP, for instance:

    Loaded Configuration File => /private/etc/php.ini
  4. Open the php.ini file and add the path to your couchbase.so file. For example:

    extension=/path/to/couchbase.so