source: content/web/apache.xml@ b1623c2

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since b1623c2 was b1623c2, checked in by Randy McMurchy <randy@…>, 20 years ago

more package patch renaming

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2376 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY apache-download-http "http://www.apache.org/dist/httpd/httpd-&apache-version;.tar.gz">
8 <!ENTITY apache-download-ftp "ftp://ftp.tux.org/pub/net/apache/dist/httpd/httpd-&apache-version;.tar.gz">
9 <!ENTITY apache-size "5.7 MB">
10 <!ENTITY apache-buildsize "75 MB">
11 <!ENTITY apache-time "1.32 SBU">
12]>
13
14<sect1 id="apache" xreflabel="Apache-&apache-version;">
15<?dbhtml filename="apache.html"?>
16<title>Apache-&apache-version;</title>
17
18<sect2>
19<title>Introduction to <application>Apache</application></title>
20
21<para>The <application>Apache</application> package contains an
22open-source <acronym>HTTP</acronym> server. It is
23useful for creating local intranet web sites or running huge web serving
24operations.</para>
25
26<sect3><title>Package information</title>
27<itemizedlist spacing='compact'>
28<listitem><para>Download (HTTP): <ulink url="&apache-download-http;"/></para></listitem>
29<listitem><para>Download (FTP): <ulink url="&apache-download-ftp;"/></para></listitem>
30<listitem><para>Download size: &apache-size;</para></listitem>
31<listitem><para>Estimated Disk space required: &apache-buildsize;</para></listitem>
32<listitem><para>Estimated build time: &apache-time;</para></listitem></itemizedlist>
33</sect3>
34
35<sect3><title>Additional downloads</title>
36<itemizedlist spacing='compact'>
37<listitem><para>Required Patch: <ulink
38url="&patch-root;/httpd-&apache-version;-config-1.patch"/></para></listitem>
39</itemizedlist></sect3>
40
41<sect3><title><application>Apache</application> dependencies</title>
42<sect4><title>Optional</title>
43<para><xref linkend="db"/> or <xref linkend="gdbm"/>, <xref linkend="openssl"/>,
44<xref linkend="openldap"/> and <xref linkend="expat"/></para></sect4>
45</sect3>
46
47</sect2>
48
49<sect2>
50<title>Installation of <application>Apache</application></title>
51
52<para>For security reasons, running the server as an unprivileged user and
53group is strongly encouraged.</para>
54
55<screen><userinput><command>groupadd apache &amp;&amp;
56useradd -c apache -d /dev/null -g apache -s /bin/false apache</command></userinput></screen>
57
58<para>The following patch will define the layout of destination directories
59and, among them, the build directory at
60<filename class="directory">/usr/lib/apache/build</filename>. This
61will allow the modules added to <application>Apache</application> to
62be configured without errors. Apply the patch:</para>
63
64<screen><userinput><command>patch -Np1 -i ../httpd-&apache-version;-config-1.patch</command></userinput></screen>
65
66<para>Build and install <application>Apache</application> by running the
67following commands:</para>
68
69<screen><userinput><command>./configure --enable-layout=LFS \
70 --enable-mods-shared=all &amp;&amp;
71make &amp;&amp;
72make install</command></userinput></screen>
73
74</sect2>
75
76<sect2>
77<title>Command explanations</title>
78
79<para><parameter>--with-expat=/usr</parameter>: Uses system installed
80expat. <emphasis>If you have installed expat and do not use this switch, the
81apache installation may overwrite some files from the expat
82installation.</emphasis></para>
83
84<para><parameter>--enable-mods-shared=all</parameter>: We want modules
85to be compiled and used as Dynamic Shared Objects
86(<acronym>DSO</acronym>s) so they can be included and excluded from the
87server using the run-time configuration directives.</para>
88
89<para><parameter>--enable-ssl</parameter>: Use this switch
90to create the <filename class="libraryfile">mod_ssl</filename>
91module and enable <acronym>SSL</acronym> support.</para>
92
93</sect2>
94
95<sect2>
96<title>Configuring <application>Apache</application></title>
97
98<sect3>
99<title>Config files</title>
100
101<para><filename>/etc/apache/*</filename></para>
102
103</sect3>
104
105<sect3><title>Configuration Information</title>
106
107<para>The main configuration file is called
108<filename>httpd.conf</filename>. Modify it to run the server as a
109dedicated user:</para>
110
111<screen><userinput><command>sed -i -e "s%User nobody%User apache%" -e "s%^Group #-1%Group apache%" /etc/apache/httpd.conf</command></userinput></screen>
112
113<para>See
114<ulink url="http://httpd.apache.org/docs-2.0/configuring.html"/> for
115detailed instructions on customizing your Apache <acronym>HTTP</acronym>
116server.</para>
117
118<para>Install the <filename>/etc/rc.d/init.d/apache</filename>
119init script included in the <xref linkend="intro-important-bootscripts"/>
120package.</para>
121
122<screen><userinput><command>make install-apache</command></userinput></screen>
123
124</sect3>
125
126</sect2>
127
128<sect2>
129<title>Contents</title>
130
131<para>The <application>Apache</application> package provides
132<command>ab</command>,
133<command>apachectl</command>,
134<command>apr-config</command>,
135<command>apu-config</command>,
136<command>apxs</command>,
137<command>checkgid</command>,
138<command>dbmmanage</command>,
139<command>htdbm</command>,
140<command>htdigest</command>,
141<command>htpasswd</command>,
142<command>httpd</command>,
143<command>instdso.sh</command>,
144<command>logresolve</command>,
145<command>rotatelogs</command>,
146<filename class="libraryfile">libapr</filename>,
147<filename class="libraryfile">libaprutil</filename> and
148various modules.</para>
149</sect2>
150
151<sect2><title>Description</title>
152
153<sect3><title>ab</title>
154<para><command>ab</command> is a tool for benchmarking your
155<application>Apache</application> <acronym>HTTP</acronym> server.
156</para></sect3>
157
158<sect3><title>apachectl</title>
159<para><command>apachectl</command> is a front end to the
160<application>Apache</application> <acronym>HTTP</acronym>
161server which is designed to help the administrator control the
162functioning of the <application>Apache</application> httpd daemon.</para></sect3>
163
164<sect3><title>apxs</title>
165<para><command>apxs</command>
166is a tool for building and installing extension modules for the
167<application>Apache</application> <acronym>HTTP</acronym> server.</para></sect3>
168
169<sect3><title>dbmmanage</title>
170<para><command>dbmmanage</command> is used to create and update the
171<filename>DBM</filename> format files used to store usernames and passwords
172for basic authentication of <acronym>HTTP</acronym>
173users.</para></sect3>
174
175<sect3><title>htdigest</title>
176<para><command>htdigest</command> is used to create and update the
177flat-files used to store usernames, realms and passwords for digest
178authentication of <acronym>HTTP</acronym> users.</para></sect3>
179
180<sect3><title>htpasswd</title>
181<para><command>htpasswd</command> is used to create and update the
182flat-files used to store usernames and passwords for basic authentication of
183<acronym>HTTP</acronym> users.</para></sect3>
184
185<sect3><title>httpd</title>
186<para><command>httpd</command> is the <application>Apache</application>
187<acronym>HTTP</acronym> server program.</para></sect3>
188
189<sect3><title>instdso.sh</title>
190<para><command>instdso.sh</command> is a script which installs
191<application>Apache</application> <acronym>DSO</acronym> modules.</para></sect3>
192
193<sect3><title>logresolve</title>
194<para><command>logresolve</command> is a post-processing program to
195resolve <acronym>IP</acronym>-addresses in <application>Apache</application>'s
196access log files.</para></sect3>
197
198<sect3><title>rotatelogs</title>
199<para><command>rotatelogs</command> is a simple program for use in conjunction
200with <application>Apache</application>'s piped log file feature.</para></sect3>
201
202</sect2>
203
204</sect1>
Note: See TracBrowser for help on using the repository browser.