Installation of Apache
For security reasons, running the server as an unpriviledged user and group is strongly encouraged.
groupadd apache &&
useradd -c apache -d /dev/null -g apache -s /bin/false apache
Build and install Apache by running the following commands:
./configure --prefix=/usr \
--sbindir=/usr/sbin \
--libexecdir=/usr/lib/apache \
--sysconfdir=/etc/apache \
--includedir=/usr/include/apache \
--datadir=/var/www \
--localstatedir=/var/www \
--logfiledir=/var/log/apache \
--runtimedir=/var/run \
--enable-module=all \
--enable-shared=max \
--disable-module=auth_db \
--disable-module=auth_dbm \
--server-uid=apache \
--server-gid=apache &&
make &&
make install