Installing PHP OCI8 Extension on Mac OSX(10.11.6)

Installed or Verified that Homebrew is installed on your Mac. If hasn’t installed yet, open terminal and paste command which is written on the actual Homebrew website Install the PEAR package manager to run PECL. Download these files from Oracle website instantclient-basic-macos.x64-11.2.0.3.0.zip instantclient-sqlplus-macos.x64-11.2.0.3.0.zip instantclient-sdk-macos.x64-11.2.0.3.0.zip Create and unzip all theses files into a the directory `/usr/local/instantclient/12_1/`. This directory will looks like: […]

Installing OCI8 on the CentOS

Download the RPM instant client package from oracle website. Since it is Linux environment, use the this oracle linkInstall the RPMs as the root user rpm –ivh  oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm rpm –ivh  oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm rpm –ivh oracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpm Install some prerequisite yum install php-pear yum install php-devel Set environment variables ORACLE_HOME and LD_LIBRARY_PATH# ORACLE_HOME=/usr/lib/oracle/12.1/client64; export ORACLE_HOME # LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATHYou should also add the […]