Download Oracle Client
Official: Linux x86-64
Agree to the agreement and download the following documents:
- oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm
- oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm
Installation
rpm -ivh oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpmrpm -ivh oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm
Basic is installed by default /usr/lib/oracle/
under
Devel is installed by default /usr/include/oracle/
under
Installing PHP Extensions
cd php-5.3.3/ext/oci8phpizeexport LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/:$LD_LIBRARY_PATHexport ORACLE_HOME="/usr/lib/oracle/11.2/client64/"export CFLAGS="-I/usr/include/oracle/11.2/client64/"export CXXFLAGS="-I/usr/include/oracle/11.2/client64/"./configure --with-php-config=/usr/local/bin/php-config --with-oci8=/usr/lib/oracle/11.2/client64/makemake isntall
Modify PHP configuration file
extension=oci8.so
Reboot, complete
From for notes (Wiz)
PHP Extended--oracle Client (OCI8) installation