Hi Tom Here's the install script that I walk through to install Apache 2, mod_perl 2 and libapreq. Done it on a number of machines including redhat, and it works for me.
You may get errors along the way because of missing libraries. Just install them and repeat the last step. It installs apache to /opt/httpd.... and links it to /opt/apache/, so you can stick your websites under /opt/apache, and when you want to upgrade, just relink to the new directories in /opt/httpd.... =============================================== ### For 64 bit, try LDFLAGS="-L/usr/lib64" MPM="prefork" SUFFIX="_${MPM}_perl_php" rm -Rf apache_and_friends mkdir -p apache_and_friends/packages cd apache_and_friends/packages # See http://httpd.apache.org/download.cgi wget http://apache.rediris.es/httpd/httpd-2.0.58.tar.gz # See http://perl.apache.org/download/index.html wget http://perl.apache.org/dist/mod_perl-2.0-current.tar.gz # See http://httpd.apache.org/apreq/download.cgi wget http://apache.rediris.es/httpd/libapreq/libapreq2-2.07.tar.gz cd .. tar -xzf packages/httpd* tar -xzf packages/mod_perl* tar -xzf packages/libapreq* APACHE=`echo httpd*` echo "INSTALLING to /opt/$APACHE$SUFFIX" cd $APACHE CFLAGS="-DAP_UNSAFE_ERROR_LOG_UNESCAPED" \ ./configure --prefix=/opt/$APACHE$SUFFIX \ --localstatedir=/opt/apache \ --sysconfdir=/opt/apache/conf \ --datadir=/opt/apache \ --with-mpm=$MPM\ --enable-cache=shared\ --enable-deflate=shared\ --enable-disk-cache=shared\ --enable-file-cache=shared\ --enable-info=shared\ --enable-mem-cache=shared\ --enable-rewrite=shared\ --enable-dav=shared\ --enable-auth-digest\ --enable-ssl=shared\ --enable-unique-id=shared\ --enable-usertrack=shared make rm -Rf /opt/$APACHE$SUFFIX make install cd .. cd mod_perl-* perl Makefile.PL \ MP_AP_PREFIX=/opt/$APACHE$SUFFIX \ MP_COMPAT_1X=0 make make test make install cd .. cpan "ExtUtils::XSBuilder" cpan "Parse::RecDescent" cd libapreq* perl Makefile.PL --with-apache2-apxs=/opt/$APACHE$SUFFIX/bin/apxs make make test make install ln -fs /opt/$APACHE$SUFFIX/* /opt/apache ln -sf /opt/apache/bin/apachectl /usr/bin/apachectl ln -sf /opt/apache/bin/apachectl /etc/rc.d/httpd chkconfig httpd on perl -pi -e "s/ServerRoot \"\/opt\/$APACHE$SUFFIX\"/ServerRoot \"\/opt\/apache\"/" /opt/apache/conf/httpd.conf grep -qE "mod_perl.so" /opt/apache/conf/httpd.conf || \ perl -pi -e 's!(modules/mod_apreq.so\s*\n)!$1LoadModule perl_module modules/mod_perl.so\n!' \ /opt/apache/conf/httpd.conf mkdir /opt/apache/conf/ssl.crt/ mkdir /opt/apache/conf/ssl.key/ cd /opt/apache/conf/ssl.key/ openssl genrsa -out server.key 1024 openssl req -new -days 1000 -key server.key -x509 -out ../ssl.crt/server.crt