here's a simple script i use to build one of my servers, it builds
openssl, and apache with mod_ssl / mod_perl

On Tue, 2002-09-24 at 09:07, Allan P. Magmanlac wrote:
> Hello,
> 
>        Can anyone advise me on how to build
> apache server with ssl and openssl and
> using mod perl.
> 
> this is how I do it WITHOUT mod perl support
> cd to modssl soure directory and then run the following command
> ./configure \
> --with-apache=../apache_1.3.26 \
> --with-ssl=../openssl-0.9.6g  \
> --prefix=/usr/local/root/httpd_1.3.26 \
> --with-crt=/usr/local/root/httpd/usr/local/www/conf/ssl.crt/server.crt \
> --with-key=/usr/local/root/httpd/usr/local/www/conf/ssl.key/server.key \
> --enable-module=proxy
> 
> So how would I do it WITH mod perl support. (exact commands would
> be appreciated)
> 
> Thanks

# build script
#

export MOD_PERL=mod_perl-1.27
export MOD_PERL_TGZ=${MOD_PERL}.tar.gz

export MOD_SSL=mod_ssl-2.8.10-1.3.26
export MOD_SSL_TGZ=${MOD_SSL}.tar.gz

export OPENSSL=openssl-0.9.6g
export OPENSSL_TGZ=${OPENSSL}.tar.gz
export OPENSSL_PREFIX=/usr/local
export SSL_BASE=../${OPENSSL}

export APACHE=apache_1.3.26
export APACHE_TGZ=${APACHE}.tar.gz
export APACHE_SRC=../$APACHE/src;
export APACHE_PREFIX=/usr

rm -rf $APACHE
rm -rf $MOD_PERL
rm -rf $OPENSSL
rm -rf $MOD_SSL

gunzip < $OPENSSL_TGZ | tar xfop -
gunzip < $APACHE_TGZ | tar xfop -
gunzip < $MOD_SSL_TGZ | tar xfop -
gunzip < $MOD_PERL_TGZ | tar xfop -

cd $OPENSSL
./config --prefix=$OPENSSL_PREFIX
make && make install

cd ../$MOD_SSL
./configure \
        --with-apache=../$APACHE \
        --with-ssl=../$OPENSSL \
        --with-crt=$APACHE_PREFIX/conf/ssl.crt/server.crt \
        --with-key=$APACHE_PREFIX/conf/ssl.key/server.key \
        --prefix=$APACHE_PREFIX



cd ../$MOD_PERL

perl Makefile.PL \
        APACHE_PREFIX=$APACHE_PREFIX \
        APACHE_SRC=../$APACHE/src \
        DO_HTTPD=1 \
        USE_APACI=1 \
        EVERYTHING=1 \
        APACI_ARGS=' --enable-module=so, \
                        --enable-module=ssl, \
                        --enable-module=proxy, \
                        --disable-module=imap, \
                        --disable-module=cgi, \
                        --disable-module=asis, \
                        --disable-module=autoindex, \
                        --disable-module=actions, \
                        --enable-module=info, \
                        --enable-module=usertrack'

make && make install

Reply via email to