Installation of Apache
For security reasons, running the server as an unprivileged user and group is strongly encouraged.
groupadd apache &&
useradd -c apache -d /dev/null -g apache -s /bin/false apache
The following patch will define the layout of destination directories
and, among them, the build directory at
/usr/lib/apache/build. This
will allow the modules added to Apache to
be configured without errors. Apply the patch:
patch -Np1 -i ../httpd-&apache-version;-config.patch
Build and install Apache by running the following commands:
./configure --enable-layout=LFS \
--enable-mods-shared=all &&
make &&
make install &&
chown root:root /usr/sbin/{apxs,apachectl,dbmmanage,envvars-std,envvars} &&
chown -R root:root /usr/{include,lib}/apache &&
chown -R root:root /var/www &&
chown -R root:root /usr/share/man