source: server/major/apache.xml@ de2551f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 de2551f was de2551f, checked in by Chris Staub <chris@…>, 15 years ago

Corrections to installed program lists for various packages

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

  • Property mode set to 100644
File size: 16.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/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-http "http://archive.apache.org/dist/httpd/httpd-&apache-version;.tar.bz2">
9 <!ENTITY apache-download-ftp "ftp://apache.mirrors.pair.com/httpd/httpd-&apache-version;.tar.bz2">
10 <!ENTITY apache-md5sum "3e98bcb14a7122c274d62419566431bb">
11 <!ENTITY apache-size "4.9 MB">
12 <!ENTITY apache-buildsize "83 MB">
13 <!ENTITY apache-time "2.1 SBU">
14]>
15
16<sect1 id="apache" xreflabel="Apache-&apache-version;">
17 <?dbhtml filename="apache.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>Apache-&apache-version;</title>
25
26 <indexterm zone="apache">
27 <primary sortas="a-Apache">Apache</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to Apache</title>
32
33 <para>The <application>Apache</application> package contains an
34 open-source HTTP server. It is useful for creating local intranet
35 web sites or running huge web serving operations.</para>
36
37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>Download (HTTP): <ulink url="&apache-download-http;"/></para>
41 </listitem>
42 <listitem>
43 <para>Download (FTP): <ulink url="&apache-download-ftp;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download MD5 sum: &apache-md5sum;</para>
47 </listitem>
48 <listitem>
49 <para>Download size: &apache-size;</para>
50 </listitem>
51 <listitem>
52 <para>Estimated disk space required: &apache-buildsize;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated build time: &apache-time;</para>
56 </listitem>
57 </itemizedlist>
58
59 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
60 <itemizedlist spacing='compact'>
61 <listitem>
62 <para>Required patch: <ulink
63 url="&patch-root;/httpd-&apache-version;-config-1.patch"/></para>
64 </listitem>
65 </itemizedlist>
66
67 <bridgehead renderas="sect3">Apache Dependencies</bridgehead>
68
69 <bridgehead renderas="sect4">Optional</bridgehead>
70 <para role="optional"><xref linkend="db"/>,
71 <xref linkend="openssl"/>,
72 <xref linkend="openldap"/>,
73 <xref linkend="pcre"/>,
74 <ulink url="http://apr.apache.org/">APR</ulink>,
75 <ulink url="http://apr.apache.org/">APR-util</ulink>, and
76 <ulink url="http://www.distcache.org/">distcache</ulink></para>
77
78 <bridgehead renderas="sect4">Optional (Only if Using the Bundled
79 APR-util)</bridgehead>
80 <para role="optional"><!-- <xref linkend="pkgconfig"/>, -->
81 <xref linkend="expat"/>,
82 <!-- <xref linkend="gdbm"/>, -->
83 <xref linkend="postgresql"/>, and
84 <xref linkend="sqlite"/></para>
85
86 <para>Though you can install APR and APR-util as separate components,
87 it is recommended to use the bundled versions that come with the Apache
88 HTTPD tarball.</para>
89
90 <para condition="html" role="usernotes">User Notes:
91 <ulink url="&blfs-wiki;/apache"/></para>
92
93 </sect2>
94
95 <sect2 role="installation">
96 <title>Installation of Apache</title>
97
98 <para>For security reasons, running the server as an unprivileged user and
99 group is strongly encouraged. Create the following group and user using the
100 following commands
101 (as <systemitem class="username">root</systemitem>):</para>
102
103<screen role="root"><userinput>groupadd -g 25 apache &amp;&amp;
104useradd -c "Apache Server" -d /dev/null -g apache \
105 -s /bin/false -u 25 apache</userinput></screen>
106
107 <note><para>The above command directs the <application>Apache</application>
108 user's home directory to <filename>/dev/null</filename>. This may not work
109 for some add-ons such as <ulink
110 url='http://www.viewvc.org/'><application>ViewVC</application></ulink>, a
111 browser interface for CVS and Subversion version control repositories.
112 See the User Notes for details for specific applications.</para></note>
113
114 <para>The following patch modifies the layout of destination
115 directories and among them, the build directory at
116 <filename class="directory">/usr/lib/apache/build</filename>. This
117 will allow the modules added to <application>Apache</application>
118 to be configured without errors. Apply the patch:</para>
119
120<screen><userinput>patch -Np1 -i ../httpd-&apache-version;-config-1.patch</userinput></screen>
121
122 <note>
123 <para>You may wish to review the output from
124 <command>./configure --help</command> and include whatever parameters
125 are necessary to the <command>configure</command> command below to build
126 the modules required for your installation. There are as many as 62
127 additional parameters you can add to the <command>configure</command>
128 command to build additional modules. Some of the extra parameters which
129 aren't described or mentioned in the <parameter>--help</parameter>
130 information are listed in the <quote>Command Explanations</quote> section
131 below.</para>
132
133 <para>If you are using the bundled version of
134 <application>APR-util</application> and you are going to install
135 <application>Subversion</application> with
136 <application>Berkeley DB</application> back-end support, ensure you use
137 the parameters shown in the <quote>Command Explanations</quote> section
138 below.</para>
139
140 <para>While it is not built by default when using the following commands,
141 the ISAPI DSO module can be created by adding the <option>--enable-isapi</option>
142 option. Even the module will compile, install and load fine, the module is
143 <emphasis>only</emphasis> supported and functional in Win32
144 environments.</para>
145 </note>
146
147 <para>Build and install <application>Apache</application> by running the
148 following commands:</para>
149
150<screen><userinput>./configure --enable-layout=FHS --enable-mods-shared=all &amp;&amp;
151make</userinput></screen>
152
153 <para>This package does not come with a test suite.</para>
154
155 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
156
157<screen role="root"><userinput>make install &amp;&amp;
158chown -v root:root /usr/lib/apache/httpd.exp \
159 /usr/sbin/{apxs,apachectl,dbmmanage,envvars{,-std}} \
160 /usr/share/man/man1/{dbmmanage,ht{dbm,digest,passwd}}.1 \
161 /usr/share/man/man8/{ab,apachectl,apxs,htcacheclean,httpd}.8 \
162 /usr/share/man/man8/{logresolve,rotatelogs,suexec}.8 &amp;&amp;
163chown -v -R apache:apache /srv/www</userinput></screen>
164
165 </sect2>
166
167 <sect2 role="commands">
168 <title>Command Explanations</title>
169
170 <!-- This is not required any longer. Finds and uses system installed
171 version of Expat without any issues
172 <para><option>-with-expat=/usr</option>: Uses the system installed
173 <application>expat</application>. <emphasis role="strong">If you have
174 installed <application>expat</application> and do not use this switch, the
175 <application>Apache</application> installation may overwrite some files
176 from the <application>expat</application> installation.</emphasis></para>
177 -->
178
179 <para><parameter>--enable-mods-shared=all</parameter>: The modules
180 should be compiled and used as Dynamic Shared Objects
181 (DSOs) so they can be included and excluded from the
182 server using the run-time configuration directives.</para>
183
184 <para><option>--enable-ssl</option>: Use this parameter
185 to create the <filename class="libraryfile">mod_ssl</filename>
186 module and enable SSL support. This parameter is mentioned as one of many
187 parameters which can be passed to the <command>configure</command> command
188 to create additional DSO modules.</para>
189
190 <para><option>--with-pcre</option>: Add this parameter to use the system
191 installed version of the <application>PCRE</application> library.</para>
192
193 <para><option>--with-z</option>: Add this parameter to use the system
194 installed version of the <application>Zlib</application> library.</para>
195
196 <para><option>--with-ldap</option>: This parameter is required if you
197 passed the <option>--enable-authnz-ldap</option> or
198 <option>--enable-ldap</option> options to <command>configure</command>
199 and enabled the <application>OpenLDAP</application> modules.</para>
200
201 <para><option>--with-dbm=db45 --with-berkeley-db</option>: Use these
202 parameters if you require <application>Berkeley DB</application> support in
203 the bundled version of <application>APR-util</application> (required for
204 <application>Berkeley DB</application> back-end support in
205 <application>Subversion</application>).</para>
206
207 <para><command>chown root:root ...</command>: This command changes the
208 ownership of some installed files, the result of building the package as
209 a user other than <systemitem class="username">root</systemitem>.</para>
210
211 <para><command>chown -R apache:apache /srv/www</command>: By default, the
212 installation process installs files (documentation, error messages, default
213 icons, etc.) with the ownership of the user that extracted the files from
214 the tar file. If you want to change the ownership to another user, you
215 should do so at this point. The only requirement is that the document
216 directories need to be accessible by the <command>httpd</command> process
217 with (r-x) permissions and files need to be readable (r--) by the
218 <systemitem class="username">apache</systemitem> user.</para>
219
220 </sect2>
221
222 <sect2 role="configuration">
223 <title>Configuring Apache</title>
224
225 <sect3 id="apache-config">
226 <title>Config Files</title>
227
228 <para><filename>/etc/apache/*</filename></para>
229
230 <indexterm zone="apache apache-config">
231 <primary sortas="e-etc-apache">/etc/apache/*</primary>
232 </indexterm>
233
234 <indexterm zone="apache apache-config">
235 <primary sortas="e-etc-apache-httpd.conf">/etc/apache/httpd.conf</primary>
236 </indexterm>
237
238 </sect3>
239
240 <sect3>
241 <title>Configuration Information</title>
242
243 <para>The main configuration file is named
244 <filename>/etc/apache/httpd.conf</filename>. Modify it so that the HTTP
245 server runs as the dedicated user and group:</para>
246
247<screen role="root"><userinput>sed -i -e "s/User daemon/User apache/" \
248 -e "s/Group daemon/Group apache/" \
249 /etc/apache/httpd.conf</userinput></screen>
250
251 <para>See <ulink url="http://httpd.apache.org/docs-2.2/configuring.html"/>
252 for detailed instructions on customizing your
253 <application>Apache</application> HTTP server configuration file.</para>
254
255<!--
256 <para>There's a problem with the ISAPI DSO module caused from compiling
257 with <application>GCC</application>-&gcc-version;. If you included the
258 parameter to build the module, comment out the module's load command
259 in the configuration file with the following command:</para>
260
261<screen role="root"><userinput>sed -i "s/^LoadModule isapi_module/# &amp;/" \
262 /etc/apache/httpd.conf</userinput></screen>
263-->
264 </sect3>
265
266 <sect3 id="apache-init">
267 <title>Boot Script</title>
268
269 <para>If you want the <application>Apache</application> server to
270 start automatically when the system is booted, install the
271 <filename>/etc/rc.d/init.d/apache</filename> init script included
272 in the <xref linkend="bootscripts"/> package.</para>
273
274 <indexterm zone="apache apache-init">
275 <primary sortas="f-apache">apache</primary>
276 </indexterm>
277
278<screen role="root"><userinput>make install-apache</userinput></screen>
279
280 </sect3>
281
282 </sect2>
283
284 <sect2 role="content">
285 <title>Contents</title>
286
287 <segmentedlist>
288 <segtitle>Installed Programs</segtitle>
289 <segtitle>Installed Libraries</segtitle>
290 <segtitle>Installed Directories</segtitle>
291
292 <seglistitem>
293 <seg>ab, apachectl, apr-config, apu-config, apxs, checkgid, dbmmanage,
294 htdbm, htdigest, htpasswd, httpd, instdso.sh, logresolve, and
295 rotatelogs</seg>
296 <seg>libapr-1.{so,a}, libaprutil-1.{so,a}, and /usr/lib/apache/*.so</seg>
297 <seg>/etc/apache, /srv/www, /usr/include/apache, /usr/lib/apache, and
298 /var/log/apache</seg>
299 </seglistitem>
300 </segmentedlist>
301
302 <variablelist>
303 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
304 <?dbfo list-presentation="list"?>
305 <?dbhtml list-presentation="table"?>
306
307 <varlistentry id="ab">
308 <term><command>ab</command></term>
309 <listitem>
310 <para>is a tool for benchmarking your
311 <application>Apache</application> HTTP server.</para>
312 <indexterm zone="apache ab">
313 <primary sortas="b-ab">ab</primary>
314 </indexterm>
315 </listitem>
316 </varlistentry>
317
318 <varlistentry id="apachectl">
319 <term><command>apachectl</command></term>
320 <listitem>
321 <para>is a front end to the <application>Apache</application>
322 HTTP server which is designed to help the administrator
323 control the functioning of the <application>Apache</application>
324 httpd daemon.</para>
325 <indexterm zone="apache apachectl">
326 <primary sortas="b-apachectl">apachectl</primary>
327 </indexterm>
328 </listitem>
329 </varlistentry>
330
331 <varlistentry id="apxs">
332 <term><command>apxs</command></term>
333 <listitem>
334 <para>is a tool for building and installing extension modules for
335 the <application>Apache</application> HTTP server.</para>
336 <indexterm zone="apache apxs">
337 <primary sortas="b-apxs">apxs</primary>
338 </indexterm>
339 </listitem>
340 </varlistentry>
341
342 <varlistentry id="dbmmanage">
343 <term><command>dbmmanage</command></term>
344 <listitem>
345 <para>is used to create and update the DBM format files used to store
346 usernames and passwords for basic authentication of HTTP users.</para>
347 <indexterm zone="apache dbmmanage">
348 <primary sortas="b-dbmmanage">dbmmanage</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
353 <varlistentry id="htdigest">
354 <term><command>htdigest</command></term>
355 <listitem>
356 <para>is used to create and update the flat-files used to store
357 usernames, realms and passwords for digest authentication of
358 HTTP users.</para>
359 <indexterm zone="apache htdigest">
360 <primary sortas="b-htdigest">htdigest</primary>
361 </indexterm>
362 </listitem>
363 </varlistentry>
364
365 <varlistentry id="htpasswd">
366 <term><command>htpasswd</command></term>
367 <listitem>
368 <para>is used to create and update the flat-files used to store
369 usernames and passwords for basic authentication of HTTP users.</para>
370 <indexterm zone="apache htpasswd">
371 <primary sortas="b-htpasswd">htpasswd</primary>
372 </indexterm>
373 </listitem>
374 </varlistentry>
375
376 <varlistentry id="httpd">
377 <term><command>httpd</command></term>
378 <listitem>
379 <para>is the <application>Apache</application>
380 HTTP server program.</para>
381 <indexterm zone="apache httpd">
382 <primary sortas="b-httpd">httpd</primary>
383 </indexterm>
384 </listitem>
385 </varlistentry>
386
387 <varlistentry id="instdso.sh">
388 <term><command>instdso.sh</command></term>
389 <listitem>
390 <para>is a script which installs <application>Apache</application>
391 DSO modules.</para>
392 <indexterm zone="apache instdso.sh">
393 <primary sortas="b-instdso.sh">instdso.sh</primary>
394 </indexterm>
395 </listitem>
396 </varlistentry>
397
398 <varlistentry id="logresolve">
399 <term><command>logresolve</command></term>
400 <listitem>
401 <para>is a post-processing program to resolve IP-addresses
402 in <application>Apache</application>'s access log files.</para>
403 <indexterm zone="apache logresolve">
404 <primary sortas="b-logresolve">logresolve</primary>
405 </indexterm>
406 </listitem>
407 </varlistentry>
408
409 <varlistentry id="rotatelogs">
410 <term><command>rotatelogs</command></term>
411 <listitem>
412 <para>is a simple program for use in conjunction with
413 <application>Apache</application>'s piped log file feature.</para>
414 <indexterm zone="apache rotatelogs">
415 <primary sortas="b-rotatelogs">rotatelogs</primary>
416 </indexterm>
417 </listitem>
418 </varlistentry>
419
420 </variablelist>
421
422 </sect2>
423
424</sect1>
Note: See TracBrowser for help on using the repository browser.