title: Centos 6 PHP OCI8 extention is not working (Undefined function oci_connect())
body: <p>I am using Centos 6 64 bit OS. Recently i have installed OCI8 extension with php. After making all configuration i tried to execute the function oci_connect to connect with a Oracle Database remotely.</p>
  
  <p>Unfortunately i got this error:</p>
  
  <pre><code>Fatal error: Call to undefined function oci_connect() in /var/www/html/index.php on line 5  
  </code></pre>
  
  <p><strong>I have installed oci8 like this:</strong></p>
  
  <blockquote>
    <p>OCI8</p>
    
    <p>Download the OCI8 source using pear</p>
  
  <pre><code>$ pear download pecl/oci8
  $ tar -xvf oci8-1.4.9.tgz
  $ cd oci8-1.4.9
  </code></pre>
    
    <p>Build and install the extension.</p>
  
  <pre><code>$ phpize 
  $ ./configure --with-oci8=shared,instantclient,/usr/lib/oracle/11.2/client64/lib 
  $ make 
  $ sudo make install
  </code></pre>
    
    <p>To enable the extension, add a file named oci8.ini in /etc/php.d with
    this content:</p>
  
  <pre><code>extension=oci8.so
  </code></pre>
    
    <p>Validate that it was successfully installed.</p>
    
    <p>$ php -i | grep oci8</p>
    
    <p>You should see something like this:</p>
  
  <pre><code>/etc/php.d/oci8.ini,
  
  oci8
  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>
  </blockquote>
  
  <p>Ref: <a href="http://shiki.me/blog/installing-pdo_oci-and-oci8-php-extensions-on-centos-6-4-64bit/" rel="nofollow">http://shiki.me/blog/installing-pdo_oci-and-oci8-php-extensions-on-centos-6-4-64bit/</a></p>
  
  <p>I would like to mention that when the installation started is message was display something like: instantclient, /../../ to PUT THE PATH. I didn't give anything, just pressed enter. Is it the issue that i can't connect to Oracle ?</p>
  
  <p>Need your help badly.</p>
  
  <p>Thanks</p>