First, make sure you have some essentials. You will need to install the following packages (use zypper or Yast.. it doesnt matter. I will show zypper because you will be in the console anyway to do this). It is possible you may need more than these, so just make sure you have what's below and whatever packages you need to compile modules (such as for ATI or nVidia drivers, or VMWare modules).
Out of habit I put the instant client in /usr/local/lib but you can put it wherever you want.
zypper install php5-devel php-pear gcc make kernel-devel
Then, you will need to unzip the instant client and the sdk archives:
Enter the new instant client folder and create a link to the libclntsh library:
This should be everything you need to create the OCI8 modules. You will now perform this:
ln -s libclntsh.so.11.1 libclntsh.so
You will be prompted for a path, or to 'AUTODETECT'. Just type it in:
Once this process is completed, you will have to edit the php.ini files in the /etc/php5/apache2 folder and in the /etc/php5/cli folder and add the following to the end of those files:
We will now have to add some environment variables, so add the following to the end of the /etc/environment file:
# Oracle Instant Client
One last thing to finish up. You will have to add an Oracle environment variable to Apache2, so edit the /etc/sysconfig/apache2 file and add this line to the bottom of the file:
Now, type in
and you should be off and running!