title: OCI8 working with the command line but not on apache
body: <p>My server is centos7, I managed to setup apache,php7.1,oracle-instantclient18.3-basic and oci8 on it.  <strong>OCI8 is working fine now when I run the code on CLI, it connects the db and fetches data</strong>, only with one warning (also appears on running php -v) :</p>
  
  <pre><code>PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_oci.so' - /usr/lib64/php/modules/pdo_oci.so: undefined symbol: php_pdo_unregister_driver in Unknown on line 0
  </code></pre>
  
  <p>unlike when I open up the page via browser (on a client machine) I got this error:</p>
  
  <pre><code>Fatal error: Uncaught Error: Call to undefined function oci_connect() in /var/www/html/pcmapi/emp.php:5 Stack trace: #0 {main} thrown in /var/www/html/pcmapi/emp.php on line 5
  </code></pre>
  
  <p>phpinfo() returns:</p>
  
  <pre><code>oci8
  OCI8 Support =&gt; enabled
  OCI8 DTrace Support =&gt; enabled
  OCI8 Version =&gt; 2.1.8
  Oracle Run-time Client Library Version =&gt; 18.3.0.0.0
  Oracle Compile-time Instant Client Version =&gt; 18.3
  
  Directive =&gt; Local Value =&gt; Master Value
  oci8.connection_class =&gt; no value =&gt; no value
  oci8.default_prefetch =&gt; 100 =&gt; 100
  oci8.events =&gt; Off =&gt; Off
  oci8.max_persistent =&gt; -1 =&gt; -1
  oci8.old_oci_close_semantics =&gt; Off =&gt; Off
  oci8.persistent_timeout =&gt; -1 =&gt; -1
  oci8.ping_interval =&gt; 60 =&gt; 60
  oci8.privileged_connect =&gt; Off =&gt; Off
  oci8.statement_cache_size =&gt; 20 =&gt; 20
  </code></pre>
  
  <p>I cannot actually recognize what causes the fatal error whether in apache or oci configuration and I find it strange that oci functions are working fine on cli but not apache. any help?</p>