glfs/content/web/apache/apache-inst.xml
Igor Živković bce380aa5d removed apache's file ownership commands since the book assumes compilation as root
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1910 af4574ff-66df-0310-9fd7-8a98e5e911e0
2004-03-22 10:49:32 +00:00

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 &amp;&amp;
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 &amp;&amp;
make &amp;&amp;
make install</command></userinput></screen>
</sect2>