Howto install Oracle database support in PHP for CentOS 6 and Amazon Linux AMI.
To access an Oracle database from PHP you need to use the OCI8 extension. I will take you through the quick process of getting it up and running.
This guide assumes you already have Apache and PHP installed in your environment running on either CentOS 6 or Amazon Linux AMI. It also assumes the Oracle database you wish to connect to is on a remote host.