this method worked great for me too all once you get past the header part here are the steps i took:
This change should be a relatively quick thing the first time did take longer then hoped. First download the latest apache for linux www.apache.com then download the latest php build in this case it was php4.0.3pl1 these files will be .tar.gz place them where ever you wish and run this command to extract them gzip -cd filename | tar xvf - this will create a subdirectory inside the one your in inside there will be all the source code to install these you still need to make compile and install them. Oracle client must be installed to do this!!! Also you will need to set up the following environment vairbles by typeing or adding this to your .profile (roots preferably)
export ORACLE_BASE=/usr/local/oracle path to your oracle
export ORACLE_HOME=/usr/local/oracle path to your oracle
export ORACLE_SID=YOUR_SID ** generaly HITS
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
start with apache by entering the apache folder where you extracted the distribution and running this command
./configure --with-layout=Apache --with-prefix=(where you want to install it at (/usr/local/apache)) --enable-module-mime-magic --enable-shared=headers --enable-module=info --enable-module=rewrite --enable-shared=rewrite --enable-module=speling --enable-shared=speling .
Then run this command
make
Then run this one
make install
At this point apache is installed and sitting in /usr/local/apache to start the server go into /usr/local/apache/bin and type ./apachectl start now go to your webbrowser and put in the address to your server to make sure your getting pages.
Now enter the folder where you extracted your Php source code you will need to add the following header files to the main folder and the ext/oci8 folder
nzerror.h
nzt.h
oci.h
oci1.h
oci8dp.h
ociap.h
ociapr.h
ocidfn.h
ociextp.h
oratypes.h
ori.h
orl.h
oro.h
ort.h
tnsapi.h
these can be found in the oracle home folder do a search for them they are kindof scattered but you need to get them from a linux box running the full blown oracle server!! you may get liucky and find them within your client version.
once this is done inside your php distribution folder type the folowing
./configure --with-apxs=/usr/local/apache/bin/apxs --with-oci8=(path to oracle home)
then type
make
then type
make install
this will do everything for you cept two final steps go to you apache bin folder usualy /usr/local/apache/bin and edit the apachectl file and add the following line to the top of it
export LD_PRELOAD=/usr/lib/libpthread.so
now type
./apachectl start
bingo your done.
the environment variables set above must be set to start apache also I reccomend adding them to any .profile that will need it