Installing OCI8 on Ubuntu

If you are planning on using the oracle functions in PHP, you will need to install OCI8. Before you begin you will need to create an account with oracle or have access to the instant client basic install file and sdk file for your linux architecture.

Prerequisites for installing OCI8

sudo (you will be doing the command line parts as sudo).

An account on the oracle website so you can download the instant client files.

A working Apache and PHP installation.

Installing the Oracle Instant Client Files

Download the Oracle Instant Client for Linux (Both the Basic and SDK versions) from here. Make sure you choose the correct architecture for your Ubuntu installation (32bit is x86, 64bit is x86_64).

Copy the files just downloaded to your Ubuntu server using scp or the WinSCP application for windows.