centos 7 : php5.4 oci8 setup Hit

# rpm -ivh oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm

# rpm -ivh oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm

# pecl download oci8-1.4.9.tgz

# tar xvzf oci8-1.4.9.tgz

# cd oci8-1.4.9

# phpize

 

if oracle server installed

# ./configure 

 

if oracle client installed

# ./configure --with-oci8=shared,instantclient,/usr/lib/oracle/11.2/client64/lib

# ln -s /usr/include/oracle/11.2/client64/ /usr/lib/oracle/11.2/client64/lib/include

# make all

# make test

# make install

 

# cp modules/oci8.so /usr/lib64/httpd/modules/

# vi /etc/php.d/oci8.ini

extension=oci8.so

# httpd -t

# systemctl restart httpd.service