In Ubuntu, placing
export ORACLE_HOME=<your oracle home>export LD_LIBRARY_PATH=<your library path>
in /etc/apache2/envvars
seems to do the trick.
If nothing else helps, you can edit your Apache startup scripts and put aboveexport lines just before Apache daemon startup (I recall I did something like this looong time ago on Debian).