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:
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
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?
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.