mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-27 09:42:12 +08:00
bce380aa5d
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1910 af4574ff-66df-0310-9fd7-8a98e5e911e0
25 lines
1.0 KiB
XML
25 lines
1.0 KiB
XML
<sect2>
|
|
<title>Installation of <application>Apache</application></title>
|
|
|
|
<para>For security reasons, running the server as an unprivileged user and group is strongly encouraged.</para>
|
|
|
|
<screen><userinput><command>groupadd apache &&
|
|
useradd -c apache -d /dev/null -g apache -s /bin/false apache</command></userinput></screen>
|
|
|
|
<para>The following patch will define the layout of destination directories
|
|
and, among them, the build directory at
|
|
<filename class="directory">/usr/lib/apache/build</filename>. This
|
|
will allow the modules added to <application>Apache</application> to
|
|
be configured without errors. Apply the patch:</para>
|
|
|
|
<screen><userinput><command>patch -Np1 -i ../httpd-&apache-version;-config.patch</command></userinput></screen>
|
|
|
|
<para>Build and install <application>Apache</application> by running the following commands:</para>
|
|
|
|
<screen><userinput><command>./configure --enable-layout=LFS \
|
|
--enable-mods-shared=all &&
|
|
make &&
|
|
make install</command></userinput></screen>
|
|
|
|
</sect2>
|