hello,
I am trying for the first time the php sdk, so on my local widnows 8 , 64 bit I installed WampServer for test local.
I also installed Couchbase Server Version: 3.0.3-1716 Enterprise Edition (build-1716) in the same host.
I downloaded the DLL files under http://www.couchbase.com/node/1411 ;
I placed the .DDL files php_couchbase.dll and libcouchbase.dll under C:\wamp\bin\php\php5.5.12\ext and C:\wamp\bin\apache\apache2.4.9\bin
I created a simple php to test:
<?php
// adjust these parameters to match your installation
$cb = new Couchbase("127.0.0.1:8091", "Administrator", "test123", "default");
$cb->set("a", 101);
var_dump($cb->get("a"));
?>
I get the following error;
( ! ) Fatal error: Class ‘Couchbase’ not found in C:\wamp\www\test.php on line 3
Call Stack
it has been now 5 days trying to make sdk php working and no chance
Fatal error: Class ‘CouchbaseCluster’ not found in C:\xampp\htdocs\wiss\testwiss.php on line 4
Why it is so difficult to make SDK php working for windows (impossible in my case) ?
I donwloaded all DLL from here: https://github.com/keshavkatwe/couchbase
Installed xampp with php 5.5 32 bit on my windows 7 (64bit) , I have tried this call;
The file is retrieved and displayed. However, run through php-fpm, I get the following error:
PHP message: PHP Fatal error: Class 'CouchbaseCluster' not found in ... <long path and filename>
I went through phpinfo() to see if there were any Couchbase entries but there were none … but it works when I run the code through a PHP file as a shell command so I’m a bit perplexed.
/etc/php5/cli/conf.d/20-json.ini, couchbase json json support => enabled json version => 1.3.2
I remembered that php-fpm has it’s own INI file so I added the extension in /etc/php5/fpm/php.ini as well then restarted the fpm service. Had no effect.
These steps are not in the official documentation, right? because i did not find anything that says php 5.6 is not supported by couchbase
regardless, i am using 5.6 now because while trying to make it work with 5.5, everything got messed up so i had to reinstall and decided to install the latest version of wamp