-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

Jacob Walcik wrote:

> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
>
> has anyone out there successfully compiled both mod_perl and mod_jserve
> into apache concurrently?
>

Yes, here is a CRUDE script that I use to make a  Apache/1.3.9 (Unix)
ApacheJServ/1.0 mod_perl/1.21

#
# ********************COMPILE THE STUFF********************
#
# This is VERY IMPORTANT.  Make sure that the Apache dir, modperl dir
# and jserv dir are all subdirectories in a commpn area.  This script
# expects that they are all in the COMPILE_AREA directory.

COMPILE_AREA=/home/bpm/compile_area
APACHE_DIR=$COMPILE_AREA/apache
MODPERL_DIR=$COMPILE_AREA/modperl
JSERV_DIR=$COMPILE_AREA/jserv

# ********************FOR MOD_PERL FIRST DO:

echo "Going to $MODPERL_DIR"
cd $MODPERL_DIR

perl Makefile.PL \
    APACHE_SRC=../apache/src \
    DO_HTTPD=1 \
    USE_APACI=1 \
    PREP_HTTPD=1 \
    EVERYTHING=1

if [ $? -ne 0 ]; then
 exit 1
fi

echo "Making modperl"
make

#********************THEN GO TO APACHEXXX AND DO:

if [ $? -ne 0 ]; then
 exit 1
fi
echo "Going to $APACHE_DIR"
cd $APACHE_DIR

./configure --prefix=/opt/APACHEhttpd \
            --with-layout=GNU \
            --activate-module=src/modules/perl/libperl.a \
            --enable-module=most \
            --enable-module=auth_dbm

if [ $? -ne 0 ]; then
 exit 1
fi
echo "Making apache"
make

#********************THEN GO BACK TO MOD_PERL AND DO:

if [ $? -ne 0 ]; then
 exit 1
fi
echo "Going back to $MODPERL_DIR"
cd $MODPERL_DIR

echo "Will test & install modperl"
make test && make install

#********************THEN GO TO JSERV AND DO:

if [ $? -ne 0 ]; then
 exit 1
fi
echo "Going to $JSERV_DIR"
cd $JSERV_DIR

./configure --prefix=/opt/APACHEhttpd/jserv \
            --enable-apache-conf \
            --with-apache-src=../apache \
            --with-jdk-home=/usr/java1.2 \
            --with-jsdk=/opt/java/JSDK2.0/lib/jsdk.jar \
            --disable-debugging

if [ $? -ne 0 ]; then
 exit 1
fi
echo "Making JServ java src & installing"
gmake && gmake install

#********************THEN GO BACK TO APACHEXXX AND DO:

if [ $? -ne 0 ]; then
 exit 1
fi
echo "Going back to $APACHE_DIR"
cd $APACHE_DIR

./configure --prefix=/opt/APACHEhttpd \
            --with-layout=GNU \
            --activate-module=src/modules/perl/libperl.a \
            --activate-module=src/modules/jserv/libjserv.a \
            --enable-module=most \
            --enable-module=auth_dbm

if [ $? -ne 0 ]; then
 exit 1
fi
echo "Making the final Apache/modperl/JServ hybrid"
make && make install


--
Brian Millett
Enterprise Consulting Group     "Heaven can not exist,
(314) 205-9030                     If the family is not eternal"
[EMAIL PROTECTED]                   F. Ballard Washburn





--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to