glfs/content/web/apache/apache-inst.xml

30 lines
1010 B
XML
Raw Normal View History

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