at a time earlier than now, Stas Bekman wrote:
> > Installing:
> What's so complicated about this:
>
> % cd /usr/src
> % lwp-download http://www.apache.org/dist/apache_x.x.x.tar.gz
> % lwp-download http://perl.apache.org/dist/mod_perl-x.xx.tar.gz
> % tar xzvf apache_x.x.x.tar.gz
> % tar xzvf mod_perl-x.xx.tar.gz
> % cd mod_perl-x.xx
> % perl Makefile.PL APACHE_SRC=../apache_x.x.x/src \
> DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
> % make && make test && make install
> % cd ../apache_x.x.x
> % make install
nothing.. but it's even better as a shell script, set the versions and go!
-=-=- start -=-=-=-
#!/bin/sh
#TMPDIR='/tmp'
TMPDIR=$1
#APACHE_VER='1.3.14'
APACHE_VER=$2
#MODPERL_VER='1.24_01'
MODPERL_VER=$3
if [ $# -lt 3 ]; then
echo "Usage: mod_perl.sh <tmpdir> <modperl version #> <apache version #>";
exit;
fi
cd $TMPDIR
lwp-download "http://www.apache.org/dist/apache_$APACHE_VER.tar.gz"
lwp-download "http://perl.apache.org/dist/mod_perl-$MODPERL_VER.tar.gz"
tar vzxf apache_$APACHE_VER.tar.gz
tar vzxf mod_perl-$MODPERL_VER.tar.gz
cd mod_perl-$MODPERL_VER
# Add this arg to APACI_ARGS if you are on RedHat
# --with-layout=RedHat
perl Makefile.PL APACHE_SRC=../apache_$APACHE_VER/src DO_HTTPD=1 USE_APACI=1
EVERYTHING=1 APACI_ARGS='--enable-shared=max --disable-shared=perl
--enable-module=most'
make && make test && make install
cd ../apache_$APACHE_VER
make install
echo "***** Done! ******"
-=-=- end -=-=-=-=-
Anyone have code to handle the config file?
Aaron
>
> and slurping into httpd.conf:
>
> PerlModule Apache::Registry
> Alias /perl/ /home/httpd/perl/
> <Location /perl>
> SetHandler perl-script
> PerlHandler Apache::Registry
> PerlSendHeader On
> Options +ExecCGI
> </Location>
>
> and running:
>
> % apachect start
>
> to get started with... works out of box on most Unix flavors.
>
> Your problem is that you try to use the precompiled broken packages
> provided by distros.
>
> Try this command :)
>
> perl -le \
> 'print "Build from source! Do NOT use mod_perl binary rpms!" while 1'
>
> _____________________________________________________________________
> Stas Bekman JAm_pH -- Just Another mod_perl Hacker
> http://stason.org/ mod_perl Guide http://perl.apache.org/guide
> mailto:[EMAIL PROTECTED] http://apachetoday.com http://jazzvalley.com
> http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]