Help setting up PHP to connect to Couchbase
I am trying to evaluate Couchbase for our dev needs.
Environment: Ubuntu 10.4 64 bit
Couchbase Server 1.8 Community
I have Couchbase server successfully running, and now I want to do a simple test from PHP. I created a temp.php file for testing, however it gives an error.
// adjust these parameters to match your installation
$cb = new Couchbase("", "Administrator", "", "default");
Response: Fatal error: Class 'Couchbase' not found in /var/www/vhosts//temp.php on line 3
I added couchbase.so to the PHP library, but then the log said it needed libcouchbase.so.1, and so I found and added that. It then said it needed libvbucket.so.1, so I added that. Now it is giving me the error in the log file of:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/couchbase.so' - libcouchbase.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/libcouchbase.so.1' - libvbucket.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'libvbucket.so.1' in Unknown on line 0
Are there some simple steps that I am missing to configure Couchbase SDK with PHP5?
Any help would be really appreciated.