You should follow either the instructions in section 1.4.1 or 1.4.2 depending on whether you want to compile Apache with mod_ssl or not.
As noted in the overview, you will need to compile Apache with mod_so within. If you have already compiled Apache with a static module version of PHP (mod_php4) AND mod_so then you might need to recompile Apache again, leaving out the static PHP module. A static PHP module would have been configured into Apache if
--activate-module
was included when running ./configure.
Midgard-1.4 is said to be compatible with Apache 1.3.3 onwards. Although it is recommended that you use at least version 1.3.4 as it supports mod_dav which will be in Midgard soon. Since we were setting up a pristine system, we simply compiled Apache 1.3.14 for the Midgard installation and hereunder are the steps we took to compile Apache.
We chose to have apache run as a user other than the default (nobody, nogroup). If you choose to do the same, then decide what user and group you want your Apache server to run as, and use those for the instances where we have apacheuser and apachegroup. Some people tend to use webuser and webgroup as their apacheuser and apachegroup respectively.
We will use mod_ssl-2.7.1-1.3.14 and we will assume that the mod_ssl and apache sources are unpacked in the same base directory.
$ cd mod_ssl-2.7.1-1.3.14 $ ./configure --with-apache=../apache_1.3.14 # [groupadd <apachegroup>] # [useradd -g <apachegroup> <apacheuser>] $ cd apache_1.3.14 (directory containing apache source) $ SSL_BASE=SYSTEM ./configure [--prefix=/usr/local/apache] --enable-module=all --with-perl=/usr/bin/perl --enable-shared=max [--server-uid=<apacheuser> --server-gid=<apachegroup>] $ make # make certificate TYPE=custom # make install # [chown -R <apacheuser>.<apachegroup> /usr/local/apache] |
As noted in the overview, you will need to compile Apache with mod_so within. If you have already compiled Apache with a static module version of PHP (mod_php4) AND mod_so then you might need to recompile Apache again, leaving out the static PHP module. A static PHP module would have been configured into Apache if
--activate-module
was included when running ./configure.
Midgard-1.4 is said to be compatible with Apache 1.3.3 onwards. Although it is recommended that you use at least version 1.3.4 as it supports mod_dav which will be in Midgard soon. Since we were setting up a pristine system, we simply compiled Apache 1.3.14 for the Midgard installation and hereunder are the steps we took to compile Apache.
We chose to have apache run as a user other than the default (nobody, nogroup). If you choose to do the same, then decide what user and group you want your Apache server to run as, and use those for the instances where we have apacheuser and apachegroup. Some people tend to use webuser and webgroup as their apacheuser and apachegroup respectively.
# [groupadd <apachegroup>] # [useradd -g <apachegroup> <apacheuser>] $ cd apache_1.3.14 (directory containing apache source) $ ./configure [--prefix=/usr/local/apache] --enable-module=all --with-perl=/usr/bin/perl --enable-shared=max [--server-uid=<apacheuser> --server-gid=<apachegroup>] $ make # make install # [chown -R <apacheuser>.<apachegroup> /usr/local/apache] |