I am trying to install OCI8 on default PHP that came with OS X Mavericks (PHP 5.4.17 (cli) (built: Aug 25 2013 02:03:38)).
I have installed Oracle Instant Client (Version 11.2.0.3.0 (64-bit)) and I am able to run sqlplus and connect to oracle server.
I have installed oci8 using pecl: pecl install oci8
and I got:
...
Build process completed successfully
Installing '/usr/lib/php/extensions/no-debug-non-zts-20100525/oci8.so'
install ok: channel://pecl.php.net/oci8-2.0.6
Extension oci8 enabled in php.ini
however when I do php -v I get:
~ $ php -v
PHP Warning: PHP Startup: oci8: 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
PHP 5.4.17 (cli) (built: Aug 25 2013 02:03:38)
...
I understand that PHP and OCI version mismatch but I don't know how to remedy this. Any suggestions please.