Install all the Oracle's Instant Client rpms applications from :
http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html
The transcript of the istallation:
1021 yum install oracle-instantclient-x86_64-11.2.0.2.0-1.remi.nosrc.rpm
1022 yum install local oracle-instantclient-x86_64-11.2.0.2.0-1.remi.nosrc.rpm
1024 yum install local oracle-instantclient11.2-tools-11.2.0.2.0.x86_64.rpm
1025 yum install local oracle-instantclient11.2-devel-11.2.0.2.0.x86_64.rpm
1027 yum install local oracle-instantclient11.2-basic-11.2.0.2.0.x86_64.rpm
1028 yum install local oracle-instantclient11.2-devel-11.2.0.2.0.x86_64.rpm
1029 yum install local oracle-instantclient11.2-tools-11.2.0.2.0.x86_64.rpm
1031 yum install local oracle-instantclient11.2-sqlplus-11.2.0.2.0.x86_64.rpm
1033 yum install local oracle-instantclient11.2-odbc-11.2.0.2.0.x86_64.rpm
1035 yum install local oracle-instantclient11.2-jdbc-11.2.0.2.0.x86_64.rpm
provide the system variables for oracle installations:
1099 export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib
1100 export ORACLE_HOME=/usr/lib/oracle/11.2/client64
Install 'libaio' dependencies:
1110 yum install -y libaio-devel.x86_64
1111 yum install libaio.x86_64
Install pecl:
1136 yum install -y pecl
1137 pecl
Config the pear proxy:
1139 pear config-set http_proxy http://proxy1:8080/
Install php-devel:
1142 yum install -y php-devel
Install php-pear:
1150 yum install php-pear
Using pecl, install oci8:
1140 pecl install oci8
Inside the installation, provide the argument of instantclient installation location:
"instantclient,/usr/lib/oracle/11.2/client64/lib"
(please re-check the actual location of the installation.
It may differ according to each instantclient version)
Then, add this line into file /etc/php.ini:
extension=oci8.so
Then restart the httpd.
0 comments:
Post a Comment