To configure Apache for compilation, change
directories to the Apache source directory.
|
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.
|
This will run the configuration script,
and prepare the Apache source for compilation.
Once the Apache source has been configured,
simply type make to
compile the server.
|
Once Apache has been compiled, become root
using su or sudo
and type make install.
|
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.