Trying to get these three things to work together has been quite a pain. I was able to install Oracle just fine, good instructions can be found:
I was even able to install the OCI8 modules for php with,
you will need to:
apt-get install libc6-dev-i386
before running the pear command.
The issue is that during PHP startup it will complain it is of the "wrong ELF class: ELFCLASS32" Is there a way to get around this without going 32bit?
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613/oci8.so' - /usr/lib/php5/20060613/oci8.so: wrong ELF class: ELFCLASS32 in Unknown on line 0