Fatal error: Class 'Couchbase' not found on Windows

Hi, I have this problem for Couchbase installation in php running in Windows 7 Professional (64-bit)
I'm using Wampserver v2.4, Apache Version : 2.4.4, PHP Version : 5.4.12

I downloaded this SDK:
php_couchbase-1.1.2-5.4-nts-vc9-x86
and extracted to my php extensions folder (C:\wamp\bin\php\php5.4.12\ext)

then I added this line on my php.ini inside the php5.4.12 folder
extension=php_couchbase.dll

I copied the php example from the getting started page:

<?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"));
?>

It will return this line:
Fatal error: Class 'Couchbase' not found in C:\wamp\www\CouchbaseTest\index.php on line 3

Can you help me solve this problem?
Thank you.

1 Answer

« Back to question.

Hi,

we need to find out what's the problem here.

Can you run php -m and see if couchbase is listed there and also if errors show up? If it doesnt show up and no errors are there, then it is a path issue.
Otherwise php will complain in there if the module is incompatible.