#please first install MySQL and JDKGood Luck!
#----installation directories----
MYSQL_PREFIX=/usr/local/mysql
JDK_PREFIX=/usr/local/jdk1.2
JSERV_PREFIX=/usr/local/jserv
PHP_PREFIX=/usr/local/php3
APACHE_PREFIX=/usr/local/apache
GNUJSP_PREFIX=/usr/local/gnujsp#----prepare to install jserv,php3,apache----
tar xvf apache_1.3.9.tarcd apache_1.3.9
./configure --prefix=$APACHE_PREFIX
cd ..#----install jserv----
tar xvf Apache_JServ_1.0.tarSavePWD=`pwd`
mkdir $JSERV_PREFIX
cp -R -f ApacheJServ-1.0/* $JSERV_PREFIXcd $JSERV_PREFIX
./configure --prefix=$JSERV_PREFIX --enable-static --with-apache-src=$SavePWD/apache_1.3.9 --with-jsdk=$JSDK_PREFIX/lib/jsdk.jar --enable-compressed-jar --enable-apache-conf
make
make installcd $SavePWD
rm -R -f ApacheJServ-1.0#----install php3----
tar xvf php-3.0.13.tarcd php-3.0.13
./configure --prefix=$PHP_PREFIX --with-mysql=$MYSQL_PREFIX --with-apache=../apache_1.3.9 --enable-track-vars --with-config-file-path=${PHP_PREFIX}
make
make install
mkdir ${PHP_PREFIX}
cp php3.ini-dist ${PHP_PREFIX}/php3.inicd ..
rm -R -f php-3.0.13#----install apache----
cd apache_1.3.9
./configure --prefix=$APACHE_PREFIX --activate-module=src/modules/php3/libphp3.a --activate-module=src/modules/jserv/mod_jserv
make
make installcd ..
rm -R -f apache_1.3.9#----install gnujsp----
tar xvf gnujsp-1.0.0.tarmkdir $GNUJSP_PREFIX
cp -f gnujsp-1.0.0/lib/gnujsp10.jar $GNUJSP_PREFIX
cp -f gnujsp-1.0.0/lib/servlet-2.0-plus.jar $GNUJSP_PREFIXrm -R -f gnujsp-1.0.0
#----configure----
echo "---------------------------------------------------------------------------"
echo "please add following lines in httpd.conf:"
#echo " Include <your jserv configure file>"
echo " AddType application/x-httpd-php3 .php3 .php .phtml"
echo " AddType application/x-httpd-php3-source .phps"
echo ""
echo "please add following lines in /etc/profile:"
echo " CLASSPATH=""$""CLASSPATH:$JDK_PREFIX/lib/tools.jar:$GNUJSP_PREFIX/gnujsp10.jar:$GNUJSP_PREFIX/servlet-2.0-plus.jar:$JSERV_PREFIX/lib/ApacheJServ.jar"
echo " PATH=""$""PATH:$APACHE_PREFIX/bin"
echo " CPLUS_INCLUDE_PATH=""$""CPLUS_INCLUDE_PATH:$APACHE_PREFIX/include"
echo " MANPATH=""$""MANPATH:$APACHE_PREFIX/man"
echo ""
echo " export PATH CPLUS_INCLUDE_PATH MANPATH"
echo ""
echo "please add following lines in jserv configure file(jserv.conf):"
echo " ApJServAction .jsp /servlet/org.gjt.jsp.JspServlet"
echo ""
echo "please add following lines in jserv properties file(jserv.properties):"
echo " wrapper.bin=$JDK_PREFIX/bin/java"
echo ""
echo " wrapper.classpath=$JDK_PREFIX/lib/tools.jar"
echo " wrapper.classpath=$GNUJSP_PREFIX/gnujsp10.jar"
echo " wrapper.classpath=$GNUJSP_PREFIX/servlet-2.0-plus.jar"
echo " wrapper.classpath=$JSERV_PREFIX/lib/ApacheJServ.jar"
echo ""
echo "please add following lines in your zone properties file(<zone>.properties):"
echo " respositories=<your jserv classes path>"
echo " servlet.org.gjt.jsp.JspServlet.initArgs=scratchdir=<jsp path>"
echo ""
echo "please add following lines in /etc/rc.d/rc.local:"
echo " $APACHE_PREFIX/bin/apachectl start"
Larry Hoffman wrote:
I need to set up a web server. I have already installed apache 1.3.9-8. I
need to install the apache jserv now. How would I go about doing this.My operationg system is Linux.
Thanks
-Larry===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
