HowTo Install Oracle Client

Download Oracle Client
http://www.oracle.com/technology/software/…ient/index.html

Preview Save /root/oracle
instantclient-basic-linux32-11.1.0.7.zip
instantclient-sqlplus-linux32-11.1.0.7.zip
instantclient-sdk-linux32-11.1.0.7.zip

Download OCI8
http://pecl.php.net/package/oci8

Preview Save /root/oracle
oci8-1.3.5.tgz

Create Dir /opt/oracle

Copy files to Oracle directory
cp instantclient-basic-linux32-11.1.0.7.zip /opt/oracle
cp instantclient-sqlplus-linux32-11.1.0.7.zip /opt/oracle
cp instantclient-sdk-linux32-11.1.0.7.zip /opt/oracle

Inflate files

unzip instantclient-basic-linux32-11.1.0.7.zip
unzip instantclient-sqlplus-linux32-11.1.0.7.zip
unzip instantclient-sdk-linux32-11.1.0.7.zip

Access new dir client oracle
cd /opt/oracle/instantclient_11_1

Create simboly Link

ln -s libclntsh.so.11.1 libclntsh.so
ln -s libocci.so.11.1 libocci.so

edit profile file

vi /etc/profile

Include file text down:

# –> Oracle
export ORACLE_BASE=/opt/oracle/instantclient_11_1
export ORACLE_HOME=/opt/oracle/instantclient_11_1
export ORACLE_SID=prod
export ORACLE_TERM=xterm
export PATH=$HOME/bin:$ORACLE_HOME/bin:$PATH
export NLS_LANG=American_America.WE8ISO8859P1
#<–Oracle

Save File (:wq)

Load Profile execute command:

source /etc/profile

Copy oci8-1.3.5.tgz for /usr/src

cp oci8-1.3.5.tgz /usr/src

Access dir

cd /usr/src

inflate file
tar -zxvf oci8-1.3.5.tgz

Access directory /usr/src/oci8-1.3.5

cd /usr/src/oci8-1.3.5

Execute commands:

phpize
./configure –with-oci8=instantclient,/opt/oracle/instantclient_11_1
make

Complete copilation sucess

Copy /usr/src/oci8-1.3.5/modules/oci8.so for (location directive extension_dir view in file php.inf)

cp /usr/src/oci8-1.3.5/modules/oci8.so /usr/local/lib/php/extensions/no-debug-non-zts-20060613

Open IE and WHM

Search option “PHP Configuration Editon” (Click)

Click Button – “Switch to Advanced Mode”

Search option “Core extension”

Add value “, oci8.so”

Save and OK

Check PHP INFO

Fonte: Fórum cPanel – http://www.forumcpanel.com.br/index.php?showtopic=8700&hl=