Configuring Apache

To configure Apache for compilation, change directories to the Apache source directory.
 
 
lamonml@hespera> cd apache_1.3.12

Next, execute the configure script and pass it any configuration options you want to use.  The options below are my recommendation - they enable all the Apache modules as shared modules, disable a rather nasty authentication database module, and place the compiled result in /usr/local/apache.  You can substitute whatever your desired target directory is in place of /usr/local/apache.
 

 
lamonml@hespera> ./configure --prefix=/usr/local/apache --enable-shared=max \
                 --enable-module=all --disable-module=auth_db

This will run the configuration script, and prepare the Apache source for compilation.
 

Compiling Apache

Once the Apache source has been configured, simply type make to compile the server.
 

 
lamonml@hespera> make

Installing Apache

Once Apache has been compiled, become root using su or sudo and type make install.
 

 
lamonml@hespera> sudo make install

Binary Packages

Some operating systems, notably Solaris and RedHat Linux, supply pre-compiled binary packages of the Apache web server with their operating system.  I haven't tested the install process for mod_perl on either version of Apache, but it more than probably will work on the Solaris package.  I doubt it will work properly with the RedHat packages, mainly because it places the configuration files in an unusual location.  If you're running RedHat, I highly suggest that you remove the Apache RPM and instead compile from source.