glfs/content/web/apache/apache-inst.xml
Igor Živković 665a60c715 corrected permissions for apache
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1446 af4574ff-66df-0310-9fd7-8a98e5e911e0
2003-10-24 14:32:00 +00:00

29 lines
1.2 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 &amp;&amp;
chown root:root /usr/sbin/{apxs,apachectl,dbmmanage,envvars-std,envvars} &amp;&amp;
chown -R root:root /usr/{include,lib}/apache &amp;&amp;
chown -R root:root /var/www &amp;&amp;
chown -R root:root /usr/share/man</command></userinput></screen>
</sect2>