mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-01 21:12:12 +08:00
7c7fa7df7e
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@159 af4574ff-66df-0310-9fd7-8a98e5e911e0
30 lines
1010 B
XML
30 lines
1010 B
XML
<sect2>
|
|
<title>Installation of Apache</title>
|
|
|
|
<para>For security reasons, running the server as an unpriviledged user and group is strongly encouraged.</para>
|
|
|
|
<screen><userinput>groupadd apache &&
|
|
useradd -c apache -d /dev/null -g apache -s /bin/false apache</userinput></screen>
|
|
|
|
<para>Build and install Apache by running the following commands:</para>
|
|
|
|
<screen><userinput>./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</userinput></screen>
|
|
|
|
</sect2>
|