Peter Lister wrote:
> apache_1.3.20 mod_perl-1.26 mod_ssl-2.8.4-1.3.20
>
> I can't build Apache with these together if the mod_ssl build works,
> mod_perl is not built in. If I build mod_perl in the approved manner,
> the mod_ssl build files.
>
> I have followed the recipe in INSTALL.SSL - and it doesn't help. Has
> anyone got a recipe for doing this?
Here is a script that I use for making apache+modperl+ssl as a dso:
(Make sure to change any path references to your needs)
--BEGIN--
#!/bin/sh
#
SRC_DIR=$*
##
if [ "$SRC_DIR" = "." ]; then
SRC_DIR=$PWD
fi
PATH=/usr/bin:/usr/sbin:/opt/sfw/bin:/usr/ccs/bin
PREFIX=/opt/apache
MODPERL_DIR=$SRC_DIR/modperl
APACHE_DIR=$SRC_DIR/apache
MODSSL_DIR=$SRC_DIR/modssl
SSL_BASE=/opt/sfw
EAPI_MM=$SRC_DIR/mm
export SSL_BASE RSA_BASE EAPI_MM PATH
# This can be GNU or Apache
LAYOUT=Apache
MAKE=`which gmake`
##
## important hint for the first-time users
##
if [ $# -eq 0 ]; then
echo " + Warning: Configuring Apache without a src dir."
echo " + This is probably not what you really want."
echo " + Please supply as argument the directory where the src are found."
echo
exit 0
else if [ $# -gt 1 ]; then
echo " + Warning: Configuring Apache with multiple src dirs.."
echo " + This is probably not what you really want."
echo " + Please supply as argument the directory where the src are found."
echo
exit 0
fi
fi
### IMPORTANT ###
#
# If you already have a certificate, then fill in their locations:
#
CERT=/path/to/your/server.crt
#CERT=/opt/raven/module/pki/certs/signedCert.cert
#KEY=/opt/raven/module/pki/keys/internal.ec-group.com.key
######## NOTHING MORE TO CONFIGURE ##########################
# ********************FOR FIRST CLEAN SOURCES DO:
echo "Going to $EAPI_MM"
cd $EAPI_MM
CFLAGS=$CFLAGS \
./configure --disable-shared
if [ $? -ne 0 ]; then
echo "Configure MM failure!!!"
exit 1
fi
$MAKE
if [ $? -ne 0 ]; then
echo "Unable to make MM!!"
exit 1
fi
# ********************FOR FIRST CLEAN SOURCES DO:
echo "Going to $APACHE_DIR"
cd $APACHE_DIR
CFLAGS=$CFLAGS \
./configure --prefix=$PREFIX \
--with-layout=$LAYOUT
if [ $? -ne 0 ]; then
echo "Configure Apache failure!!!"
exit 1
fi
# ********************FOR MOD_SSL FIRST DO:
echo "Going to $MODSSL_DIR"
cd $MODSSL_DIR
if [ "$CERT" = "/path/to/your/server.crt" ]; then
echo "Configuring without certificates"
CFLAGS=$CFLAGS \
./configure --prefix=$PREFIX \
--with-apache=$APACHE_DIR
else
echo "Configuring with certificates"
CFLAGS=$CFLAGS \
./configure --prefix=$PREFIX \
--with-apache=$APACHE_DIR \
--with-crt=$CERT \
--with-key=$KEY
fi
if [ $? -ne 0 ]; then
echo "Failure to configure mod_ssl!!!"
exit 1
fi
# ********************FOR MOD_PERL FIRST DO:
echo "Going to $MODPERL_DIR"
cd $MODPERL_DIR
perl Makefile.PL \
APACHE_SRC=$APACHE_DIR/src \
DO_HTTPD=1 \
USE_APACI=1 \
PREP_HTTPD=1 \
USE_DSO=1 \
EVERYTHING=1
if [ $? -ne 0 ]; then
echo "Configure Mod Perl failure!!!"
exit 1
fi
echo "Making modperl"
$MAKE && $MAKE install
echo "Going back to $APACHE_DIR"
cd $APACHE_DIR
CFLAGS=$CFLAGS \
./configure --prefix=$PREFIX \
--with-layout=$LAYOUT \
--activate-module=src/modules/perl/libperl.a \
--enable-shared=ssl \
--enable-shared=perl \
--enable-module=most \
--enable-module=auth_dbm
if [ $? -ne 0 ]; then
echo "Unable to configure Apache/ModPerl/SSL!!"
exit 1
fi
echo "Making the final Apache/ModPerl/SSL"
$MAKE
if [ $? -ne 0 ]; then
echo "Unable to make Apache/ModPerl/SSL!!"
exit 1
fi
###### Ok, if there are no certificates, then make a certificate
if [ "$CERT" = "/path/to/your/server.crt" ]; then
echo "Making test certificate"
make certificate TYPE=test
fi
#### INSTALL FINALLY!!!
$MAKE install
--END--
--
Brian Millett
Enterprise Consulting Group "Shifts in paradigms
(314) 205-9030 often cause nose bleeds."
[EMAIL PROTECTED] Greg Glenn