For a manual install, download the PECL OCI8 package, e.g. oci8-1.3.5.tgz.
-
Extract the package:
tar -zxf oci8-1.3.5.tgz cd oci8-1.3.5
-
Prepare the package:
phpize
-
Configure the package, either using $ORACLE_HOME or Instant Client
./configure -with-oci8=shared,$ORACLE_HOME
or
./configure -with-oci8=shared,instantclient,/path/to/instant/client/lib
-
Install the package:
make install
After either an automatic or manual install, edit your php.ini file and add the line:
extension=oci8.so
Make sure the php.ini directive extension_dir is set to the directory that oci8.so was installed in.