Hmmm. I think I would do a new install in usr/local/
Sort of an Oracle only PHP install, and leave the existing one alone.
Your existing php.ini is probably in /etc so you won't have conflicts
if you put the new install php.ini in /usr/local/lib/php.ini
I took notes during my install...
Please see:
http://www3.sympatico.ca/arothmel/ht...tml#InstallPHP
It doesn't really matter where you install it as long as you don't tromp on the existing install in the /usr and /usr/share etc.
So you build php and tell it where Apache and Oracle are.
That should be it.
From my notes:
Install PHP>
Apache is installed, so you can now install PHP. You will uncompress the PHP package, giving you a directory named "php-4.3.2". You must change into this directory. Use the standard UNIX/Linux way of building and installing software from source; configure, make, and then make install.
Notes:
* At this point I would suggest logging in as Oracle User and then # su root, without the '-'; keeping your Oracle environment intact.
* If you get an error about apxs and you see the help screen from apxs displayed, then you need to recompile Apache and ensure that --enable-module=so is specified to the configure command. - See above.
Check PHP site for further documentation oci8 with PHP. (A good reference to the OCI method and how it is more flexible than the standard Oracle extension.)
# tar zxvf php-4.3.3.tar.gz
# cd php-4.3.3
# ./configure --with-oci8=$ORACLE_HOME \
--with-apxs=/usr/local/apache1.3.28/sbin/apxs \
--enable-sigchild
# make
# make install
# cp php.ini-dist /usr/local/lib/php.ini
You must also edit the httpd.conf file which is usually located in /where/ever/apache/conf. You must add the following lines:
#
# This will load the PHP module into Apache.
# Put this line with other LoadModule lines.
#
LoadModule php4_module
libexec/libphp4.so
#
# This next section will add a handler for .php files,
# put it with other IfModule lines.
#
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
</IfModule>
Have fun!
alar