How To install PHP5 and OCI8 “oracle client for php” on Debian / Ubuntu Server

How to and tutorials

This tutorial covers how to compile oci8 lib with php5 on Ubuntu Server.

For this edition it is assumed that you are issuing these commands from the command line.

Open a Terminal “CTRL+ALT+T” and issue a sudo -i

    sudo -i 

Install Apache2

    apt-get install apache2 

Install required PHP5 modules and libraries

    apt-get install php5-common php5 php5-dev libapache2-mod-php5 php5-cli 

Install the build-essential and php-pear packages

    apt-get install build-essential php-pear 

IMPORTANT! Install libaio1 library. This is what I was having serious issues with originally.

    apt-get install libaio1 

Download the new Instantclient and SDK zip files from Oracle.


In my case the files are called and Initially these files will be saved in my home directory under the Documents folder /home/ubuntu/Documents/

create a directory to house the zip files once they are uncompressed

    mkdir /opt/oracle 

move the .zip files in the “Documents” directory to the /opt/oracle directory

    mv /home/ubuntu/Documents/*.zip /opt/oracle 

View original post 207 more words