title: oci_connect() works from terminal but not in apache environment
body: <p>I recently installed and enabled oci8 extension for <code>PHP 5.6</code> and using <code>Apache 2.4.10</code> on <code>CentOS 6.4</code> 64-bit, using <code>httpd, httpd-devel, php56w-* and mysql</code>.
  I used the latest Instant Client at the time (12.1) and followed the instruction on Oracle website, 
  used both <code>pecl install oci8</code> and <code>phpize</code> options on installing <code>oci8 2.0.8</code>, setting environment variables for both shell and Apache, mentioning <code>modules/oci8.so</code> in <code>php.d/oci8.ini</code>.</p>
  
  <p>The problem is, I can call <code>oci_connect()</code> by using php in terminal like <code>php oci_test.php</code>, it works fine, but when I try running it from a browser, it returns <code>Fatal error: Call to undefined function oci_connect()</code>. I have already read <a href="https://stackoverflow.com/questions/14605099/oci-connect-works-only-from-command-line">this solution</a> but it didn't work, and both LD_LIBRARY_PATH and ORACLE_HOME are set correctly in both shell and httpd and php. (I intend to use yajra's work on oci for laravel so it doesn't use connection strings and generate it dynamically, so it doesn't need TNS_ADMIN or any .ora files)</p>
  
  <p>It just works fine on my other Environment which is an XAMPP controller based Apache on Windows, manually upgraded to Apache 2.4.10 (64 ts vc11) and PHP 5.6 (64) using php_oci8_12c.dll provided by oracle.</p>