G'day Howard,

> I'm trying to put together apache with mod_perl, mod_ssl, openssl, php3
> and mysql modules and am getting a tad confused about the order in which
> things should be done such as the configure's, make's and make install's.
>
> The docos are good, but very confusing.
>
> Does anyone have a good pointer as to the best plan of attack.


We use the following script to put our apache together: obviously you
may need to adjust the versions, options etc.  Or just use it as a guide
to doing it by hand.

Cheers,

Chris,
OnTheNet

--- cut here ---
#!/bin/sh

set -e

#  Local config options to use...
# for mod_ssl, php3 and apache

apache_ver="1.3.9"
mod_ssl_ver="2.4.1-1.3.9"
mod_perl_ver="1.21"
openssl_ver="0.9.4"
php_ver="3.0.12"

# Cleanup...
cd openssl-${openssl_ver}; make clean; cd ..
cd mod_ssl-${mod_ssl_ver}; make clean; cd ..
cd php-${php_ver}; make clean; cd ..
cd mod_perl-${mod_perl_ver}; make clean; cd ..
cd apache_${apache_ver}; make clean; cd ..

# openssl
cd openssl-${openssl_ver}
./Configure linux-elf
make
su root -c 'make install'
cd ..

# mod_ssl
cd mod_ssl-${mod_ssl_ver}
./configure --with-apache=../apache_${apache_ver}
--with-ssl=../openssl-${openssl_ver}
cd ..

# php
cd php-${php_ver}
./configure --with-shared-apache=../apache_${apache_ver} --with-pgsql
--enable-track-vars
make
make install
cd ..

# mod_perl
cd mod_perl-${mod_perl_ver}
perl Makefile.PL APACHE_SRC=../apache_${apache_ver}/src DO_HTTPD=1 \
     USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1
make
su root -c 'make install'
cd ..

# mod_pam_auth
cp mod_auth_pam.c apache_${apache_ver}/src/modules/extra/mod_auth_pam.c

# apache done last...
cd apache_${apache_ver}
./configure \
  --prefix=/usr/local/apache_${apache_ver} \
  --add-module=src/modules/extra/mod_auth_pam.c \
  --activate-module=src/modules/php3/libphp3.a \
  --activate-module=src/modules/perl/libperl.a \
  --enable-module=ssl \
  --enable-module=perl \
  --enable-module=most \
  --disable-module=proxy \
  --enable-shared=max \
  --disable-shared=perl

# end of script
--- cut here ---
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to