To complete the steps, you you will need to get the Oracle Instant Client and the OCI8 PECL package.
Oracle Instant Client: http://www.oracle.com/tech
PECL OCI8 Package: http://pecl.php.net/packag
1) Install Apache, PHP, the Oracle Instant Client MySQL support if you want it and required development packages to build from source code.
yum install httpd php php-mysql php-pear php-devel zlib zlib-devel
yum groupinstall "Development Tools"
2) Add the Oracle instant client to dynamic linker
echo /usr/include/oracle/<VERSI
ldconfig -v
3) Untar the PECL package and prepare it for compiling
tar -xzvf oci-<VERSION>.tgz
cd oci-<VERSION>
phpize
4) Configure the PECL package as a shared object using the instant client and specifying where the Oracle client libraries are. Then build and install it.
./configure --with-oci8=shared,instant
make
make install
5) Add the library shared object for PHP
echo extension=oci8.so > /etc/php.d/oci8.ini
6) Start Apache
'service httpd start' _or_ '/etc/init.d/httpd restart'
7) Create a PHP info page and checked to see if the Oracle (oci8) driver is listed:
echo <? phpinfo(); ?> > /var/www/html/phpinfo.php
Instruction #3: Tar (Tape Archiver) is both a file format (in the form of a type of archive bitstream) and the name of the program used to handle such files. The use of 'tar -zxvf <filename>.tgz' will uncompress the 'tarball', then extract the files & directories into the directory the file is originally located in.
Instruction #6: There are two ways to do it under RedHat Linux: 'service httpd start' _or_ '/etc/init.d/httpd restart'