Oracle support for with Red Hat PHP rpms
For this you will need to get the Oracle instant client and the OCi8 pecl package.
Install Apache, PHP, the Oracle instant client, MySQL support if you want it and packages to build from source code.
yum install httpd php php-mysql php-pear php-develyum groupinstall “Development Tools”
Add the library config for php
echo extension=oci8.so > /etc/php.d/oci8.ini
Add the Oracle instant client to dynamic linker
echo /usr/include/oracle/VERSION/client > /etc/ld.so.conf.d/oracle_client.conf
ldconfig -v
Untar the PECL package and prepare it for compiling
tar -xzvf oci-VERSION.tgz
cd oci-VERSION
phpize
Configure the PECL package as a shared object using the instant client and specifing were the Oracle client libraries are. Then build and install it.
./configure –with-oci8=shared,instantclient,/usr/lib/oracle/VERSION/client/lib
make
make install
Start Apache
service httpd start
Create a php info page and checked to see if oci8 is there
echo <? phpinfo(); ?> > /var/www/html/phpinfo.php