source: server/major/apache.xml@ ab3a3af7

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 ab3a3af7 was ab3a3af7, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Tagged apache.xml

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

  • Property mode set to 100644
File size: 12.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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.bz2">
8 <!ENTITY apache-download-ftp "ftp://ftp.tux.org/pub/net/apache/dist/httpd/httpd-&apache-version;.tar.bz2">
9 <!ENTITY apache-md5sum "94f3a793fb1665365724943206cce23f">
10 <!ENTITY apache-size "5.0 MB">
11 <!ENTITY apache-buildsize "91.6 MB">
12 <!ENTITY apache-time "1.69 SBU">
13]>
14
15<sect1 id="apache" xreflabel="Apache-&apache-version;">
16 <?dbhtml filename="apache.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Apache-&apache-version;</title>
24
25 <indexterm zone="apache">
26 <primary sortas="a-Apache">Apache</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Apache</title>
31
32 <para>The <application>Apache</application> package contains an
33 open-source HTTP server. It is useful for creating local intranet
34 web sites or running huge web serving operations.</para>
35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>Download (HTTP): <ulink url="&apache-download-http;"/></para>
40 </listitem>
41 <listitem>
42 <para>Download (FTP): <ulink url="&apache-download-ftp;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download MD5 sum: &apache-md5sum;</para>
46 </listitem>
47 <listitem>
48 <para>Download size: &apache-size;</para>
49 </listitem>
50 <listitem>
51 <para>Estimated disk space required: &apache-buildsize;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated build time: &apache-time;</para>
55 </listitem>
56 </itemizedlist>
57
58 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
59 <itemizedlist spacing='compact'>
60 <listitem>
61 <para>Required patch: <ulink
62 url="&patch-root;/httpd-&apache-version;-config-1.patch"/></para>
63 </listitem>
64 </itemizedlist>
65
66 <bridgehead renderas="sect3">Apache Dependencies</bridgehead>
67
68 <bridgehead renderas="sect4">Optional</bridgehead>
69 <para><xref linkend="db"/> or <xref linkend="gdbm"/>,
70 <xref linkend="openssl"/>,
71 <xref linkend="openldap"/>,
72 <xref linkend="expat"/> and
73 <xref linkend="doxygen"/></para>
74
75 </sect2>
76
77 <sect2 role="installation">
78 <title>Installation of Apache</title>
79
80 <para>For security reasons, running the server as an unprivileged user and
81 group is strongly encouraged. Create the following group and user using the
82 following commands (as <systemitem class="username">root</systemitem>):</para>
83
84<screen role="root"><userinput>groupadd apache &amp;&amp;
85useradd -c "Apache Server" -d /dev/null -g apache -s /bin/false apache</userinput></screen>
86
87 <para>The following patch will define the layout of destination
88 directories and, among them, the build directory at
89 <filename class="directory">/usr/lib/apache/build</filename>. This
90 will allow the modules added to <application>Apache</application>
91 to be configured without errors. Apply the patch:</para>
92
93<screen><userinput>patch -Np1 -i ../httpd-&apache-version;-config-1.patch</userinput></screen>
94
95 <para>Build and install <application>Apache</application> by running the
96 following commands:</para>
97
98<screen><userinput>./configure --enable-layout=FHS --enable-mods-shared=all &amp;&amp;
99make</userinput></screen>
100
101 <para>This package does not come with a test suite.</para>
102
103 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
104
105<screen role="root"><userinput>make install &amp;&amp;
106chown root:root /usr/sbin/{apxs,apachectl,dbmmanage,envvars-std,envvars} \
107 /usr/include/apache/* /usr/lib/apache/httpd.exp \
108 /usr/share/man/man1/{dbmmanage,htdigest,htpasswd}.1 \
109 /usr/share/man/man8/{ab,apachectl,apxs,httpd}.8 \
110 /usr/share/man/man8/{logresolve,rotatelogs,suexec}.8 &amp;&amp;
111chown -R apache:apache /srv/www</userinput></screen>
112
113 </sect2>
114
115 <sect2 role="commands">
116 <title>Command Explanations</title>
117
118 <para><option>--with-expat=/usr</option>: Uses system installed
119 <application>expat</application>. <emphasis>If you have installed
120 <application>expat</application> and do not use this switch, the
121 <application>Apache</application> installation may overwrite some files
122 from the <application>expat</application> installation.</emphasis></para>
123
124 <para><parameter>--enable-mods-shared=all</parameter>: The modules
125 should be compiled and used as Dynamic Shared Objects
126 (DSOs) so they can be included and excluded from the
127 server using the run-time configuration directives.</para>
128
129 <para><option>--enable-ssl</option>: Use this switch
130 to create the <filename class="libraryfile">mod_ssl</filename>
131 module and enable SSL support.</para>
132
133 <para><command>chown root:root ...</command>: This command changes the
134 ownership of some installed files, the result of building the package as
135 a user other than <systemitem class="username">root</systemitem>.</para>
136
137 <para><command>chown -R apache:apache /srv/www</command>: By default, the
138 installation process installs files (documentation, error messages, default
139 icons, etc.) with the ownership of the user that extracted the files from
140 the tar file. If you want to change the ownership to another user, you
141 should do so at this point. The only requirement is that the document
142 directories need to be accessible by the <command>httpd</command> process
143 with (r-x) permissions and files need to be readable (r--) by the
144 <systemitem class="username">apache</systemitem> user.</para>
145
146 </sect2>
147
148 <sect2 role="configuration">
149 <title>Configuring Apache</title>
150
151 <sect3 id="apache-config">
152 <title>Config Files</title>
153
154 <para><filename>/etc/apache/*</filename></para>
155
156 <indexterm zone="apache apache-config">
157 <primary sortas="e-etc-apache">/etc/apache/*</primary>
158 </indexterm>
159
160 <indexterm zone="apache apache-config">
161 <primary sortas="e-etc-apache-httpd.conf">/etc/apache/httpd.conf</primary>
162 </indexterm>
163
164 </sect3>
165
166 <sect3>
167 <title>Configuration Information</title>
168
169 <para>The main configuration file is named <filename>httpd.conf</filename>.
170 Modify it to run the server as a dedicated user:</para>
171
172<screen role="root"><userinput>sed -i -e "s%User nobody%User apache%" \
173 -e "s%^Group #-1%Group apache%" \
174 /etc/apache/httpd.conf</userinput></screen>
175
176 <para>See <ulink url="http://httpd.apache.org/docs-2.0/configuring.html"/>
177 for detailed instructions on customizing your
178 <application>Apache</application> HTTP server.</para>
179
180 <para>There's a problem with the ISAPI DSO module caused from compiling
181 with <application>GCC</application>-&gcc-version;. Comment out the module
182 from the configuration file with the following command:</para>
183
184<screen role="root"><userinput>sed -i -e "s/^LoadModule isapi_module/# &amp;/" \
185 /etc/apache/httpd.conf</userinput></screen>
186
187 </sect3>
188
189 <sect3 id="apache-init">
190 <title>Boot Script</title>
191
192 <para>If you want the <application>Apache</application> server to
193 start automatically when the system is booted, install the
194 <filename>/etc/rc.d/init.d/apache</filename> init script included
195 in the <xref linkend="intro-important-bootscripts"/> package.</para>
196
197 <indexterm zone="apache apache-init">
198 <primary sortas="f-apache">apache</primary>
199 </indexterm>
200
201<screen role="root"><userinput>make install-apache</userinput></screen>
202
203 </sect3>
204
205 </sect2>
206
207 <sect2 role="content">
208 <title>Contents</title>
209
210 <segmentedlist>
211 <segtitle>Installed Programs</segtitle>
212 <segtitle>Installed Libraries</segtitle>
213 <segtitle>Installed Directories</segtitle>
214
215 <seglistitem>
216 <seg>ab, apachectl, apr-config, apu-config, apxs, checkgid, dbmmanage,
217 htdbm, htdigest, htpasswd, httpd, instdso.sh, logresolve, and
218 rotatelogs</seg>
219 <seg>libapr-0.[so,a], libaprutil-0.[so,a], and /usr/lib/apache/*.so</seg>
220 <seg>/etc/apache, /srv/www, /usr/include/apache, /usr/lib/apache, and
221 /var/log/apache</seg>
222 </seglistitem>
223 </segmentedlist>
224
225 <variablelist>
226 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
227 <?dbfo list-presentation="list"?>
228 <?dbhtml list-presentation="table"?>
229
230 <varlistentry id="ab">
231 <term><command>ab</command></term>
232 <listitem>
233 <para>is a tool for benchmarking your
234 <application>Apache</application> HTTP server.</para>
235 <indexterm zone="apache ab">
236 <primary sortas="b-ab">ab</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
240
241 <varlistentry id="apachectl">
242 <term><command>apachectl</command></term>
243 <listitem>
244 <para>is a front end to the <application>Apache</application>
245 HTTP server which is designed to help the administrator
246 control the functioning of the <application>Apache</application>
247 httpd daemon.</para>
248 <indexterm zone="apache apachectl">
249 <primary sortas="b-apachectl">apachectl</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 <varlistentry id="apxs">
255 <term><command>apxs</command></term>
256 <listitem>
257 <para>is a tool for building and installing extension modules for
258 the <application>Apache</application> HTTP server.</para>
259 <indexterm zone="apache apxs">
260 <primary sortas="b-apxs">apxs</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264
265 <varlistentry id="dbmanage">
266 <term><command>dbmanage</command></term>
267 <listitem>
268 <para>is used to create and update the DBM format files used to store
269 usernames and passwords for basic authentication of HTTP users.</para>
270 <indexterm zone="apache dbmanage">
271 <primary sortas="b-dbmanage">dbmanage</primary>
272 </indexterm>
273 </listitem>
274 </varlistentry>
275
276 <varlistentry id="htdigest">
277 <term><command>htdigest</command></term>
278 <listitem>
279 <para>is used to create and update the flat-files used to store
280 usernames, realms and passwords for digest authentication of
281 HTTP users.</para>
282 <indexterm zone="apache htdigest">
283 <primary sortas="b-htdigest">htdigest</primary>
284 </indexterm>
285 </listitem>
286 </varlistentry>
287
288 <varlistentry id="htpasswd">
289 <term><command>htpasswd</command></term>
290 <listitem>
291 <para>is used to create and update the flat-files used to store
292 usernames and passwords for basic authentication of HTTP users.</para>
293 <indexterm zone="apache htpasswd">
294 <primary sortas="b-htpasswd">htpasswd</primary>
295 </indexterm>
296 </listitem>
297 </varlistentry>
298
299 <varlistentry id="httpd">
300 <term><command>httpd</command></term>
301 <listitem>
302 <para>is the <application>Apache</application>
303 HTTP server program.</para>
304 <indexterm zone="apache httpd">
305 <primary sortas="b-httpd">httpd</primary>
306 </indexterm>
307 </listitem>
308 </varlistentry>
309
310 <varlistentry id="instdso.sh">
311 <term><command>instdso.sh</command></term>
312 <listitem>
313 <para>is a script which installs <application>Apache</application>
314 DSO modules.</para>
315 <indexterm zone="apache instdso.sh">
316 <primary sortas="b-instdso.sh">instdso.sh</primary>
317 </indexterm>
318 </listitem>
319 </varlistentry>
320
321 <varlistentry id="logresolve">
322 <term><command>logresolve</command></term>
323 <listitem>
324 <para>is a post-processing program to resolve IP-addresses
325 in <application>Apache</application>'s access log files.</para>
326 <indexterm zone="apache logresolve">
327 <primary sortas="b-logresolve">logresolve</primary>
328 </indexterm>
329 </listitem>
330 </varlistentry>
331
332 <varlistentry id="rotatelogs">
333 <term><command>rotatelogs</command></term>
334 <listitem>
335 <para>is a simple program for use in conjunction with
336 <application>Apache</application>'s piped log file feature.</para>
337 <indexterm zone="apache rotatelogs">
338 <primary sortas="b-rotatelogs">rotatelogs</primary>
339 </indexterm>
340 </listitem>
341 </varlistentry>
342
343 </variablelist>
344
345 </sect2>
346
347</sect1>
Note: See TracBrowser for help on using the repository browser.