I have got it workin... I have used a script that you may want to borrow...I'll put it in here but feel free to e-mail me on tim.parkin@didio.comHi,
I mailed you all (to you who were on my list) a while back about installing apache with php4 on Solaris 8
Well success!!! I've also automated it in a script...
fisrt make sure you have the following modules
make-3.78.1-sol8-sparc-local
autoconf-2.13-sol8-sparc-local
automake-1.4-sol8-sparc-local
bison-1.28-sol8-sparc-local
perl-5.6.0-sol8-sparc-local
gcc-2.95.2-sol8-sparc-local
use pkgadd -d (packge-sol8-sparc-local) // where packge is the name of the above
download apache_1.3.12.tar php-4.0.1pl2.tar into a download directory in your home directory
If $ORACLE_HOME isn't set then set it and export it.
copy this into a file in your home directory and change the variables to
echo "-----------------------stopping apache"
/usr/local/apache/bin/apachectl stop
source /etc/profile
LD_LIBRARY_PATH=$ORACLE_HOME/lib
export LD_LIBRARY_PATH
echo "removing /usr/local/apache"
rm -r /usr/local/apache
cd /export/home/tparkin
echo "removing apache_1.3.12 build directory"
rm -r apache_1.3.12
echo "removing php-4.0.1pl2 build directory"
rm -r php-4.0.1pl2
echo "re-extracting source files"
tar xvf downloads/apache_1.3.12.tar
tar xvf downloads/php-4.0.1pl2.tar
cd apache_1.3.12
echo "configuring apache"
./configure --with-layout=Apache --prefix=/usr/local/apache --enable-module=so --enable-module=rewrite --enable-module=log_referer --enable-module=info
--enable-module=status --add-module=src/modules/standard/mod_rewrite.c --add-module=src/modules/standard/mod_log_referer.c --add-module=src/modules/st
andard/mod_info.c --add-module=src/modules/standard/mod_status.c --enable-shared=max --server-uid=oracle --server-gid=dba
cp src/modules/standard/mod_rewrite.h src/modules/extra/.
echo "-----------------------making apache"
make
echo "-----------------------installing apache"
make install
cd ../php-4.0.1pl2
echo "-----------------------configuring php"
./configure --with-apxs=/usr/local/apache/bin/apxs --enable-track-vars=yes --enable-bcmatch=yes --enable-memory-limit=yes --enable-magic-quotes=yes --
enable-trans-sid=yes --enable-nodebug=yes --with-oci8=$ORACLE_HOME --with-oracle=$ORACLE_HOME --without-mysql --enable-libgcc
echo "-----------------------making php"
make
echo "-----------------------installing php"
make install
cd /usr/local/apache/conf
sed -e 's/#ServerName unknown/ServerName NAME_OF_SERVER_YOU_ARE_PERFORMING_INSTALL_ON/g' httpd.conf > httpd.conf.bak1
sed -e 's/ #AddType application\/x-httpd-php .php/ AddType application\/x-httpd-php .php/g' httpd.conf.bak1 > httpd.conf.bak2
sed -e 's/ #AddType application\/x-httpd-php-source .phps/ AddType application\/x-httpd-php-source .phps/g' httpd.conf.bak2 > httpd.conf
rm httpd.conf.bak1
rm httpd.conf.bak2
cd ../bin
echo "-----------------------starting apache"
/usr/local/apache/bin/apachectl start
echo "-----------------------finished"
Obviously some changes will need to be made dependant on some system configs.. don't forget to run as root.
The main barriers at the end of the day were setting LD_LIBRARY_PATH to the oracle lib directory, making sure your PATH environment variables pointed to all the appropriate resources (heres an example of mine
PATH=.:
/usr/sbin:
/usr/local/bin:
/usr/local/apache/bin:
/usr/ccb/bin:
/usr/ccs/bin:
/oracle:
/etc:
/bin:
/usr/bin:
/oracle/OraHome1/bin:
/usr/ucb:
/opt/sfw/bin )
and also the fact that make clean doesn't seem to do it's job properly so I made sure to remove all trace of previous installation attempts before starting again. I'm still having problems with mod_ssl so if anyone has any ideas I'd truly appreciate it.
Tim Parkin
Web Development Manager
Didio Communications
Leeds, UK