Apache-1.3.9 with mod_perl-1.21 now successfully installed under RedHat
6.0 PC Linux.

Earlier problems with RedHat's pre-installed version, and rpm's, still a
mystery.
I got a working installation by following the instructions in
mod_perl-1.21/INSTALL.apaci.

I was not at first successful using the 'all-in-one way', (see
INSTALL.apaci).
(Not sure why, as i did use APACHI_PREFIX, which I now see does the
apachi
install). Things worked better when I used the 'flexible way', using
--activate-module
with the apachi install.

For interested parties, this is exactly what I did to get a successful
install.
(The apachi_1.3.9 and mod_perl-1.21 directories are side by side,
un-tarballed in
the same directory. I chose to install to /usr/local/apache):

cd mod_perl-1.21
perl Makefile.PL  APACHI_SRC=../apache_1.3.9/src DO_HTTPD=1 \
        USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1
make
make install
cd ../apache_1.3.9
cd src
make                                    (aside: dont know if this was
really needed...)
make install
cd ..
make                                    (...maybe this would have done
it. But no problem)
make install
./configure --prefix=/usr/lcal/apache
--activate-module=src/modules/perl/libperl.a
make
make install

You can tell it has worked because you get a much larger httpd file, and
if
you run httpd -l you see mod_perl.c listed as one of the compiled-in
modules.
For extra comfort, the logs/error.log file reports mod_perl to be
configured
after starting up the server, (using bin/apachectl start).

Thanks to Doug, Craig and Perry for your help.
Now back to the book....

Mike

Reply via email to