I am trying to setup php to connect to couchbase and I get the following
PHP Fatal error: Class ‘Couchbase’ not found in /var/www/html/test-cbs-connection.php on line 3
Here is php source:
cat /var/www/html/test-cbs-connection.php
<?php
// adjust these parameters to match your installation
$cb = new Couchbase("127.0.0.1:8091", "", "", "default");
$cb->set("a", 101);
var_dump($cb->get("a"));
?>
Build process completed successfully
Installing '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/couchbase.so’
install ok: channel://pecl.php.net/couchbase-1.2.2
configuration option “php_ini” is not set to php.ini location
You should add “extension=couchbase.so” to php.ini
Although I’ve uploaded file to test this on domain over this server:
I guess there’s any compatibility issue or may I need to upload “cb.php” (test file) at parent location as IP but this I can’t. Is this may cause the issue as I am trying to access couchbase class from domain location.
Or its not an issue at all I should access couchbase class from any place.