title: How to run PHP's OCI8 extension on Mac OS X Mavericks?
body: <p>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)).</p>
  
  <p>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.</p>
  
  <p>I have installed oci8 using pecl: <code>pecl install oci8</code> and I got:</p>
  
  <pre><code>...
  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
  </code></pre>
  
  <p>however when I do php -v I get:</p>
  
  <pre><code>~ $ 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)
  ...
  </code></pre>
  
  <p>I understand that PHP and OCI version mismatch but I don't know how to remedy this.
  Any suggestions please.</p>