Couchbase PHP extension on CentOS 5.8 with Zend Server and PHP 5.4
So I'm trying to install the Couchbase PHP extension on CentOS 5.8 with Zend Server and PHP 5.4. I installed the C library and I downloaded the couchbase.so(the centos55 version) file but PHP doesn't seem to want to load it. If I run php -me, it shows the error:
PHP Warning: PHP Startup: couchbase: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0
So this makes sense, after all I'm using a version that is meant for CentOS 5.5, so download the source and I try to compile it but I seem to run into some issues. I get to the ./configure step and among other things it spits out:
configure: error: Cannot find php_json.h
I can't find anything on how to install this or find it. Anyone have any ideas?
I'm trying to use
Couchbase 1.8.1 CE Server
The C/C++ Couchbase Client Library v 1.X
I've tried the current version of the php extension code from github, which is apparently for the v 2.0 C Couchbase Library, as well as the v 1.0 code for the php extension. the v 2.0 says its incompatible and I get the errors when compiling the v 1.0 of the code.
P.S. I should also note that I tried I also tried installing the 2.0 version of the Couchbase C library to fix the incompatibility with the newest php extension but I get a dependency error for libev.so.4 and I can't seem to find that anywhere. However after that's installed I think I'll still run into the php_json.h error described above.