This chapter describes how to recompile Stronghold on systems other than Red Hat Linux. Recompiling Stronghold on Red Hat Linux Advanced Server systems is not required. If you want to change a module, you need only to edit the httpd.conf file. If you want to compile a third-party module, compile it according to the instructions in its documentation.
The Configuration file (ServerRoot/src/apace-1.3/Configuration) already contains the code you need to install any module that comes with Stronghold, including the optional modules described later in this chapter. The precompiled modules are compiled into Stronghold when you first install it. Optional modules are commented out of the Configuration file. By uncommenting a line of module code, you can recompile the server to include that module. Commenting out a line of module code and recompiling the server excludes the module.
The order of the module list in the Configuration file affects how the modules are compiled. In general, use these guidelines for dealing with the module list:
# cd ServerRoot/src
AddModule modules/directory/object.o
Always use a path relative to: ServerRoot/src/apache-1.3
# patch -s < patchfile
# ./Configure
# make
# ../bin/stop-server
# make install
# ../bin/start-server
On cross-platform systems you can use bin/httpd or bin/httpd-without-perl to get an httpd binary with or without mod_perl statically linked in. To do this, edit the file bin/start-server, and change the line that says:
| if bin/httpd -d ServerRoot -f conf/httpd.conf ; then
to read as follows:
| if bin/httpd-without-perl -d ServerRoot -f conf/httpd.conf ; then