« How Many Steps do You Take in a Day | Main | Server Hosed with syslog Attempts »

May 12, 2003

Building Apache with mod_perl and mod_ssl

Note: this method has been replaced by a shell script.

The need to build and package Apache goes in waves, seems like sometimes I'll do it three times in a month, and then not touch it for 6 months. Each time I've forgotten some piece of the process and end up relearning it. Searches around the web turn up umpteen different methods to get mod_perl and mod_ssl compiled into apache, all with a different twist. So I've worked out *my* steps for compiling.

Versions:
Solaris 8
gcc 3.2.3
Apache 1.3.27
mod_perl 1.27
mod_ssl 2.8.14-1.3.27
OpenSSL 0.9.6g

Obviously the source needs to be downloaded and untarred.

1. config and make Apache - necessary for USE_APACI in mod_perl make
- cd apache_<version>
- ./configure --prefix=/usr/local/apache

2. configure SSL, add to Apache
- cd ../mod_ssl-<version>
- ./configure --with-apache=../apache_<version>

3. configure mod_perl, including the option to build apache along with mod_perl make
- cd ../mod_perl-<version>
- perl Makefile.PL DO_HTTPD=1 EVERYTHING=1 APACHE_SRC=../apache_<version>/src USE_APACI=1 SSL_BASE=/usr/local/openssl APACHE_PREFIX=/usr/local/apache APACI_ARGS='--enable-module=ssl,--enable-module=rewrite'
- make

4. enable existing SSL certificate
- cd ../apache_<version>
- make certificate TYPE=existing CRT=<path to cert>

5. install the whole thing
- cd ../mod_perl-<version>
- make test
- sudo make install

Then I use my handy packaging process to grab it all and put it in a package.

Posted by mike at May 12, 2003 2:23 PM