title: Need help to install C SDK and PHP SDK for couchbase server 4.0.0 for UBUNTU 14.0
body: <p>I have recently started working on couchbase with laravel 5.2 on UBUNTU 14.04 OS. After I installed everything, I am able to see couchbase admin home page but could not able to access it from my code. Below are the steps I followed. Can someone please check and suggest if I miss anything. </p>
  
  <p>1) Downloaded and installed couchbase server 4.0.0 successfully. </p>
  
  <p>2) Downloaded C SDK as mentioned below</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>wget -O- http://packages.couchbase.com/ubuntu/couchbase.key | sudo apt-key add -
  echo "deb http://packages.couchbase.com/ubuntu trusty trusty/main" &gt;&gt; /etc/apt/sources.list.d/couchbase.list
  apt-get update
  sudo apt-get install libcouchbase2-core libcouchbase2-libevent libcouchbase-dev</code></pre>
  </div>
  </div>
  </p>
  
  <p>Then installed PHP SDK using PECL</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>sudo pecl install couchbase</code></pre>
  </div>
  </div>
  </p>
  
  <p>4) After everything got installed, I have opened my composer.json file in my laravel project and added below line </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>"require": {
          "php": "&gt;=5.5.9",
          "laravel/framework": "5.2.*",
          "ytake/laravel-couchbase": "^0.2.0"
      },</code></pre>
  </div>
  </div>
  </p>
  
  <p>Then ran composer update.</p>
  
  <p>5) My config/databse.php settings</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>'couchbase' =&gt; [
              'driver' =&gt; 'couchbase',
              'host' =&gt; 'http://localhost',
              'user' =&gt; 'admin',
              'password' =&gt; 'admin123',
              'bucket' =&gt; 'laravel',
              'persist_conn' =&gt; true,
              'display_limit' =&gt; 20,</code></pre>
  </div>
  </div>
  </p>
  
  <p>6)Tried to access records from "laravel" bucket.<br>
    Homecontroller:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  use App\Http\Requests;
  
  class HomeController extends Controller {
  
      public function index() {
          
        
  
          \DB::connection('couchbase')
                  -&gt;table('laravel')-&gt;get();
  
  //        $cb = new Couchbase("http://localhost:8091/", "admin", "admin123", "laravel");
  //        $cb-&gt;set("a", 101);
  //        var_dump($cb-&gt;get("a"));
  //        
  //        $cluster = new CouchbaseCluster('http://127.0.0.1:8091');
  //        $bucket = $cluster-&gt;openBucket('laravel');
  //        $bucket-&gt;insert('a', 101);
  //        var_dump($bucket-&gt;get('a'));
      }
  
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Issue:#1 There I am getting "FatalErrorException in CouchbaseConnector.php line 35:Class 'CouchbaseCluster' not found". </p>
  
  <p>Issue:#2 I am not able to see "Couchbase" in phpinfo(); </p>