2002-08-27 19:20:14 +08:00
|
|
|
<sect2>
|
2003-09-13 08:39:14 +08:00
|
|
|
<title>Installation of <application>Apache</application></title>
|
2002-08-27 19:20:14 +08:00
|
|
|
|
2003-10-04 00:43:11 +08:00
|
|
|
<para>For security reasons, running the server as an unprivileged user and group is strongly encouraged.</para>
|
2002-08-27 19:20:14 +08:00
|
|
|
|
2003-09-13 08:39:14 +08:00
|
|
|
<screen><userinput><command>groupadd apache &&
|
|
|
|
useradd -c apache -d /dev/null -g apache -s /bin/false apache</command></userinput></screen>
|
2002-08-27 19:20:14 +08:00
|
|
|
|
2003-09-20 11:56:53 +08:00
|
|
|
<para>The following patch will define the layout of destination directories
|
2003-09-20 20:44:29 +08:00
|
|
|
and, among them, the build directory at
|
2003-09-20 11:56:53 +08:00
|
|
|
<filename class="directory">/usr/lib/apache/build</filename>. This
|
2003-09-20 20:44:29 +08:00
|
|
|
will allow the modules added to <application>Apache</application> to
|
2003-09-20 11:56:53 +08:00
|
|
|
be configured without errors. Apply the patch:</para>
|
|
|
|
|
2003-09-29 22:19:14 +08:00
|
|
|
<screen><userinput><command>patch -Np1 -i ../httpd-&apache-version;-config.patch</command></userinput></screen>
|
2003-09-20 11:56:53 +08:00
|
|
|
|
2003-09-13 08:39:14 +08:00
|
|
|
<para>Build and install <application>Apache</application> by running the following commands:</para>
|
2002-08-27 19:20:14 +08:00
|
|
|
|
2003-09-20 11:56:53 +08:00
|
|
|
<screen><userinput><command>./configure --enable-layout=LFS \
|
2003-09-13 08:39:14 +08:00
|
|
|
--enable-mods-shared=all &&
|
2002-08-27 19:20:14 +08:00
|
|
|
make &&
|
2004-03-22 18:49:32 +08:00
|
|
|
make install</command></userinput></screen>
|
2002-08-27 19:20:14 +08:00
|
|
|
|
|
|
|
</sect2>
|