source: server/major/apache.xml@ f6b8ec7b

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since f6b8ec7b was f6b8ec7b, checked in by Tim Tassonis <stuff@…>, 3 years ago

Update to httpd-2.4.48.

  • Property mode set to 100644
File size: 17.2 KB
RevLine 
[08254fc]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[08254fc]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[6041710]7 <!ENTITY apache-download-http
[18715a85]8 "https://archive.apache.org/dist/httpd/httpd-&apache-version;.tar.bz2">
[4890200]9 <!ENTITY apache-download-ftp " ">
[f6b8ec7b]10 <!ENTITY apache-md5sum "a7088cec171b0d00bf43394ce64d3909">
[84e3174]11 <!ENTITY apache-size "6.9 MB">
12 <!ENTITY apache-buildsize "130 MB">
13 <!ENTITY apache-time "0.8 SBU">
[08254fc]14]>
15
[7c7fa7d]16<sect1 id="apache" xreflabel="Apache-&apache-version;">
[ab3a3af7]17 <?dbhtml filename="apache.html"?>
18
19 <sect1info>
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">
[efe28817]30 <title>Introduction to Apache HTTPD</title>
[ab3a3af7]31
[6041710]32 <para>
[efe28817]33 The <application>Apache HTTPD</application> package contains an open-source HTTP
[6041710]34 server. It is useful for creating local intranet web sites or running huge
35 web serving operations.
36 </para>
[ab3a3af7]37
[42a0e5ed]38 &lfs101_checked;
[20e6cade]39
[ab3a3af7]40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
[6041710]43 <para>
44 Download (HTTP): <ulink url="&apache-download-http;"/>
45 </para>
[ab3a3af7]46 </listitem>
47 <listitem>
[6041710]48 <para>
49 Download (FTP): <ulink url="&apache-download-ftp;"/>
50 </para>
[ab3a3af7]51 </listitem>
52 <listitem>
[6041710]53 <para>
54 Download MD5 sum: &apache-md5sum;
55 </para>
[ab3a3af7]56 </listitem>
57 <listitem>
[6041710]58 <para>
59 Download size: &apache-size;
60 </para>
[ab3a3af7]61 </listitem>
62 <listitem>
[6041710]63 <para>
64 Estimated disk space required: &apache-buildsize;
65 </para>
[ab3a3af7]66 </listitem>
67 <listitem>
[6041710]68 <para>
69 Estimated build time: &apache-time;
70 </para>
[3ae60ba7]71 </listitem>
[ab3a3af7]72 </itemizedlist>
73
[efe28817]74 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
75 <itemizedlist spacing="compact">
76 <listitem>
77 <para>
78 Required patch:
79 <ulink url="&patch-root;/httpd-&apache-version;-blfs_layout-1.patch"/>
80 </para>
81 </listitem>
82 </itemizedlist>
83
84 <bridgehead renderas="sect3">Apache HTTPD Dependencies</bridgehead>
[ab3a3af7]85
[6041710]86 <bridgehead renderas="sect4">Required</bridgehead>
87 <para role="required">
[4049347a]88 <xref linkend="apr-util"/> and
89 <xref linkend="pcre"/>
[6041710]90 </para>
[94b42903]91<!--
[efe28817]92 <bridgehead renderas="sect4">Recommended</bridgehead>
93 <para role="recommended">
94 <xref linkend="openssl"/>
95 </para>
[94b42903]96-->
[6041710]97 <bridgehead renderas="sect4">Optional</bridgehead>
98 <para role="optional">
[47d5a9e5]99 <xref linkend="brotli"/>,
[0d7900a]100 <xref linkend="db"/>,
[efe28817]101 <xref linkend="doxygen"/>,
[fd69a62]102 <xref linkend="libxml2"/>,
[0ecaac7]103 <xref linkend="lua"/>,
[c41d6d5]104 <xref linkend="lynx"/> or
105 <xref linkend="Links"/> or
[7d5122e6]106 <ulink url="&elinks-url;">ELinks</ulink>,
[0c702b61]107 <xref linkend="nghttp2"/>,
[fd69a62]108 <xref linkend="openldap"/> (<xref linkend="apr-util"/> needs to be
[18716b22]109 installed with ldap support),
[0ecaac7]110 <xref linkend="rsync"/>, and
111 <ulink url="https://sourceforge.net/projects/distcache">Distcache</ulink>
[6041710]112 </para>
113
114 <para condition="html" role="usernotes">
115 User Notes: <ulink url="&blfs-wiki;/apache"/>
116 </para>
[ab3a3af7]117 </sect2>
118
119 <sect2 role="installation">
[efe28817]120 <title>Installation of Apache HTTPD</title>
[ab3a3af7]121
[6041710]122 <para>
123 For security reasons, running the server as an unprivileged user and group
124 is strongly encouraged. Create the following group and user using the
125 following commands as <systemitem class="username">root</systemitem>:
126 </para>
[ab3a3af7]127
[b785ab29]128<screen role="root"><userinput>groupadd -g 25 apache &amp;&amp;
[efe28817]129useradd -c "Apache Server" -d /srv/www -g apache \
[b785ab29]130 -s /bin/false -u 25 apache</userinput></screen>
[ab3a3af7]131
[6041710]132 <para>
[efe28817]133 Build and install <application>Apache HTTPD</application> by running the
[6041710]134 following commands:
135 </para>
136
[c7cb25b]137<screen><userinput>patch -Np1 -i ../httpd-&apache-version;-blfs_layout-1.patch &amp;&amp;
[a4f37269]138
139sed '/dir.*CFG_PREFIX/s@^@#@' -i support/apxs.in &amp;&amp;
140
141./configure --enable-authnz-fcgi \
142 --enable-layout=BLFS \
143 --enable-mods-shared="all cgi" \
144 --enable-mpms-shared=all \
145 --enable-suexec=shared \
146 --with-apr=/usr/bin/apr-1-config \
147 --with-apr-util=/usr/bin/apu-1-config \
148 --with-suexec-bin=/usr/lib/httpd/suexec \
149 --with-suexec-caller=apache \
150 --with-suexec-docroot=/srv/www \
151 --with-suexec-logfile=/var/log/httpd/suexec.log \
152 --with-suexec-uidmin=100 \
153 --with-suexec-userdir=public_html &amp;&amp;
[ab3a3af7]154make</userinput></screen>
155
[6041710]156 <para>
157 This package does not come with a test suite.
158 </para>
[ab3a3af7]159
[6041710]160 <para>
[3add494]161 Now, as the <systemitem class="username">root</systemitem> user:
[6041710]162 </para>
[ab3a3af7]163
[4472e923]164 <note>
165 <para>
166 This package does not install properly using <envar>DESTDIR</envar>
167 techniques as an unpriviledged user.
168 </para>
169 </note>
[3add494]170
[a4f37269]171<screen role="root"><userinput>make install &amp;&amp;
[63aeb2c]172
[efe28817]173mv -v /usr/sbin/suexec /usr/lib/httpd/suexec &amp;&amp;
[0a2b9de8]174chgrp apache /usr/lib/httpd/suexec &amp;&amp;
175chmod 4754 /usr/lib/httpd/suexec &amp;&amp;
[63aeb2c]176
[f165eea]177chown -v -R apache:apache /srv/www</userinput></screen>
[08254fc]178
[ab3a3af7]179 </sect2>
[08254fc]180
[ab3a3af7]181 <sect2 role="commands">
182 <title>Command Explanations</title>
[08254fc]183
[68c04ad]184 <para>
185 <command>sed '/dir.*CFG_PREFIX/s@^@#@'...</command>: Forces the
186 <application>apxs</application> utility to use absolute pathnames for
187 modules, when instructed to do so.
188 </para>
189
[14dc4b73]190 <para>
191 <parameter>--enable-authnz-fcgi</parameter>: Build FastCGI
192 authorizer-based authentication and authorization (mod_authnz_fcgi.so
193 fast CGI module).
194 </para>
195
[6041710]196 <para>
[efe28817]197 <parameter>--enable-mods-shared="all cgi"</parameter>: The modules should be
[6041710]198 compiled and used as Dynamic Shared Objects (DSOs) so they can be included
199 and excluded from the server using the run-time configuration directives.
200 </para>
201
202 <para>
[f7841987]203 <parameter>--enable-mpms-shared=all</parameter>: This switch ensures that
204 all MPM (Multi Processing Modules) are built as Dynamic Shared Objects
205 (DSOs), so the user can choose which one to use at runtime.
[efe28817]206 </para>
207
208 <para>
209 <parameter>--enable-suexec</parameter>: This switch enables building of the
210 <application>Apache</application> suEXEC module which can be used to allow
211 users to run CGI and SSI scripts under user IDs different from the user ID
212 of the calling web server.
213 </para>
214
215 <para>
216 <parameter>--with-suexec-*</parameter>: These switches control suEXEC module
217 behavior, such as default document root, minimal UID that can be used to
218 run the script under the suEXEC. Please note that with minimal UID 100, you
219 can't run CGI or SSI scripts under suEXEC as the
220 <systemitem class="username">apache</systemitem> user.
221 </para>
222
223 <para>
224 <command>... /usr/lib/httpd/suexec</command>: These commands put
225 <command>suexec</command> wrapper into proper location, since it
226 is not meant to be run directly. They also adjust proper
[0a2b9de8]227 permissions of the binary, making it setgid
[efe28817]228 <systemitem class="username">apache</systemitem>.
[6041710]229 </para>
230
231 <para>
232 <command>chown -R apache:apache /srv/www</command>: By default, the
233 installation process installs files (documentation, error messages,
234 default icons, etc.) with the ownership of the user that extracted the
235 files from the tar file. If you want to change the ownership to another
236 user, you should do so at this point. The only requirement is that the
237 document directories need to be accessible by the <command>httpd</command>
238 process with (r-x) permissions and files need to be readable (r--) by the
239 <systemitem class="username">apache</systemitem> user.
240 </para>
[efe28817]241
[ab3a3af7]242 </sect2>
[08254fc]243
[ab3a3af7]244 <sect2 role="configuration">
245 <title>Configuring Apache</title>
[08254fc]246
[ab3a3af7]247 <sect3 id="apache-config">
248 <title>Config Files</title>
[08254fc]249
[6041710]250 <para>
[efe28817]251 <filename>/etc/httpd/httpd.conf</filename> and
252 <filename>/etc/httpd/extra/*</filename>
[6041710]253 </para>
[08254fc]254
[ab3a3af7]255 <indexterm zone="apache apache-config">
[efe28817]256 <primary sortas="e-etc-httpd-httpd.conf">/etc/httpd/httpd.conf</primary>
[ab3a3af7]257 </indexterm>
[08254fc]258
[ab3a3af7]259 <indexterm zone="apache apache-config">
[efe28817]260 <primary sortas="e-etc-httpd-extra-star">/etc/httpd/extra/*</primary>
[ab3a3af7]261 </indexterm>
[efe28817]262
[ab3a3af7]263 </sect3>
264
265 <sect3>
266 <title>Configuration Information</title>
267
[6041710]268 <para>
[a1083b4]269 See <ulink url="file:///usr/share/httpd/manual/configuring.html"/>
[6041710]270 for detailed instructions on customising your
271 <application>Apache</application> HTTP server configuration file.
272 </para>
[efe28817]273
[ab3a3af7]274 </sect3>
275
[f856738]276 <sect3 id="httpd-init">
[1258125]277 <title><phrase revision="sysv">Boot Script</phrase>
278 <phrase revision="systemd">Systemd Unit</phrase></title>
[ab3a3af7]279
[6041710]280 <para>
281 If you want the <application>Apache</application> server to
[efe28817]282 start automatically when the system is booted, install the
[1258125]283 <phrase revision="sysv"><filename>/etc/rc.d/init.d/httpd</filename>
284 init script</phrase>
285 <phrase revision="systemd"><filename>httpd.service</filename>
286 unit</phrase> included in the
287 <xref linkend="bootscripts" revision="sysv"/>
[4472e923]288 <xref linkend="systemd-units" revision="systemd"/> package:
[efe28817]289 </para>
[ab3a3af7]290
[f856738]291 <indexterm zone="apache httpd-init">
[ab3a3af7]292 <primary sortas="f-apache">apache</primary>
293 </indexterm>
294
[f856738]295<screen role="root"><userinput>make install-httpd</userinput></screen>
[4890200]296
[ab3a3af7]297 </sect3>
[4890200]298
[ab3a3af7]299 </sect2>
300
301 <sect2 role="content">
302 <title>Contents</title>
303
304 <segmentedlist>
305 <segtitle>Installed Programs</segtitle>
[c3c56b2]306 <segtitle>Installed Libraries</segtitle>
[ab3a3af7]307 <segtitle>Installed Directories</segtitle>
308
309 <seglistitem>
[6041710]310 <seg>
[0a2b9de8]311 ab, apachectl, apxs, checkgid, dbmmanage, fcgistarter,
312 htcacheclean, htdbm, htdigest, htpasswd, httpd,
[fd69a62]313 httxt2dbm, logresolve, rotatelogs, and suexec
[6041710]314 </seg>
[c3c56b2]315 <seg>
[fd69a62]316 Several libraries under /usr/lib/httpd/modules/
[c3c56b2]317 </seg>
[6041710]318 <seg>
[efe28817]319 /etc/httpd,
320 /srv/www,
321 /usr/include/httpd,
322 /usr/lib/httpd,
[fd69a62]323 /usr/share/httpd,
[0a2b9de8]324 /var/log/httpd, and
[efe28817]325 /var/run/httpd
[6041710]326 </seg>
[ab3a3af7]327 </seglistitem>
328 </segmentedlist>
329
330 <variablelist>
331 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
332 <?dbfo list-presentation="list"?>
333 <?dbhtml list-presentation="table"?>
334
335 <varlistentry id="ab">
336 <term><command>ab</command></term>
337 <listitem>
[6041710]338 <para>
339 is a tool for benchmarking your <application>Apache</application>
[4c24eb0a]340 HTTP server
[6041710]341 </para>
[ab3a3af7]342 <indexterm zone="apache ab">
343 <primary sortas="b-ab">ab</primary>
344 </indexterm>
345 </listitem>
346 </varlistentry>
347
348 <varlistentry id="apachectl">
349 <term><command>apachectl</command></term>
350 <listitem>
[6041710]351 <para>
352 is a front end to the <application>Apache</application> HTTP server
353 which is designed to help the administrator control the functioning
[4c24eb0a]354 of the <application>Apache</application> httpd daemon
[6041710]355 </para>
[ab3a3af7]356 <indexterm zone="apache apachectl">
357 <primary sortas="b-apachectl">apachectl</primary>
358 </indexterm>
359 </listitem>
360 </varlistentry>
361
362 <varlistentry id="apxs">
363 <term><command>apxs</command></term>
364 <listitem>
[6041710]365 <para>
366 is a tool for building and installing extension modules for the
[4c24eb0a]367 <application>Apache</application> HTTP server
[6041710]368 </para>
[ab3a3af7]369 <indexterm zone="apache apxs">
370 <primary sortas="b-apxs">apxs</primary>
371 </indexterm>
372 </listitem>
373 </varlistentry>
374
[8961d128]375 <varlistentry id="checkgid">
376 <term><command>checkgid</command></term>
377 <listitem>
[6041710]378 <para>
379 is a program that checks whether it can setgid to the group
380 specified. This is to see if it is a valid group for Apache2 to use
381 at runtime. If the user (should be run as superuser) is in that
[4c24eb0a]382 group, or can setgid to it, it will return 0
[6041710]383 </para>
[8961d128]384 <indexterm zone="apache checkgid">
385 <primary sortas="b-checkgid">checkgid</primary>
386 </indexterm>
387 </listitem>
388 </varlistentry>
389
[de2551f]390 <varlistentry id="dbmmanage">
391 <term><command>dbmmanage</command></term>
[ab3a3af7]392 <listitem>
[6041710]393 <para>
394 is used to create and update the DBM format files used to store
[4c24eb0a]395 usernames and passwords for basic authentication of HTTP users
[6041710]396 </para>
[de2551f]397 <indexterm zone="apache dbmmanage">
398 <primary sortas="b-dbmmanage">dbmmanage</primary>
[ab3a3af7]399 </indexterm>
400 </listitem>
401 </varlistentry>
402
[28370fe]403 <varlistentry id="fcgistarter">
404 <term><command>fcgistarter</command></term>
405 <listitem>
406 <para>
[4c24eb0a]407 is a tool to start a FastCGI program
[28370fe]408 </para>
409 <indexterm zone="apache fcgistarter">
410 <primary sortas="b-fcgistarter">fcgistarter</primary>
411 </indexterm>
412 </listitem>
413 </varlistentry>
414
[8961d128]415 <varlistentry id="htcacheclean">
416 <term><command>htcacheclean</command></term>
417 <listitem>
[6041710]418 <para>
[4c24eb0a]419 is used to clean up the disk cache
[6041710]420 </para>
[8961d128]421 <indexterm zone="apache htcacheclean">
422 <primary sortas="b-htcacheclean">htcacheclean</primary>
423 </indexterm>
424 </listitem>
425 </varlistentry>
426
427 <varlistentry id="htdbm">
428 <term><command>htdbm</command></term>
429 <listitem>
[6041710]430 <para>
[4c24eb0a]431 is used to manipulate the DBM password databases
[6041710]432 </para>
[8961d128]433 <indexterm zone="apache htdbm">
434 <primary sortas="b-htdbm">htdbm</primary>
435 </indexterm>
436 </listitem>
437 </varlistentry>
438
[ab3a3af7]439 <varlistentry id="htdigest">
440 <term><command>htdigest</command></term>
441 <listitem>
[6041710]442 <para>
443 is used to create and update the flat-files used to store usernames,
[4c24eb0a]444 realms and passwords for digest authentication of HTTP users
[6041710]445 </para>
[ab3a3af7]446 <indexterm zone="apache htdigest">
447 <primary sortas="b-htdigest">htdigest</primary>
448 </indexterm>
449 </listitem>
450 </varlistentry>
451
452 <varlistentry id="htpasswd">
453 <term><command>htpasswd</command></term>
454 <listitem>
[6041710]455 <para>
456 is used to create and update the flat-files used to store usernames
[4c24eb0a]457 and passwords for basic authentication of HTTP users
[6041710]458 </para>
[ab3a3af7]459 <indexterm zone="apache htpasswd">
460 <primary sortas="b-htpasswd">htpasswd</primary>
461 </indexterm>
462 </listitem>
463 </varlistentry>
464
465 <varlistentry id="httpd">
466 <term><command>httpd</command></term>
467 <listitem>
[6041710]468 <para>
[4c24eb0a]469 is the <application>Apache</application> HTTP server program
[6041710]470 </para>
[ab3a3af7]471 <indexterm zone="apache httpd">
472 <primary sortas="b-httpd">httpd</primary>
473 </indexterm>
474 </listitem>
475 </varlistentry>
476
[8961d128]477 <varlistentry id="httxt2dbm">
478 <term><command>httxt2dbm</command></term>
[ab3a3af7]479 <listitem>
[6041710]480 <para>
[4c24eb0a]481 is used to generate DBM files from text, for use in RewriteMap
[6041710]482 </para>
[8961d128]483 <indexterm zone="apache httxt2dbm">
484 <primary sortas="b-httxt2dbm">httxt2dbm</primary>
[ab3a3af7]485 </indexterm>
486 </listitem>
487 </varlistentry>
488
489 <varlistentry id="logresolve">
490 <term><command>logresolve</command></term>
491 <listitem>
[6041710]492 <para>
493 is a post-processing program to resolve IP-addresses in
[4c24eb0a]494 <application>Apache</application>'s access log files
[6041710]495 </para>
[ab3a3af7]496 <indexterm zone="apache logresolve">
497 <primary sortas="b-logresolve">logresolve</primary>
498 </indexterm>
499 </listitem>
500 </varlistentry>
501
502 <varlistentry id="rotatelogs">
503 <term><command>rotatelogs</command></term>
504 <listitem>
[6041710]505 <para>
506 is a simple program for use in conjunction with
[4c24eb0a]507 <application>Apache</application>'s piped log file feature
[6041710]508 </para>
[ab3a3af7]509 <indexterm zone="apache rotatelogs">
510 <primary sortas="b-rotatelogs">rotatelogs</primary>
511 </indexterm>
512 </listitem>
513 </varlistentry>
[efe28817]514
[28370fe]515 <varlistentry id="suexec">
516 <term><command>suexec</command></term>
517 <listitem>
518 <para>
[4c24eb0a]519 allows users to run CGI and SSI applications as a different user
[28370fe]520 </para>
521 <indexterm zone="apache suexec">
522 <primary sortas="b-suexec">suexec</primary>
523 </indexterm>
524 </listitem>
525 </varlistentry>
526
[ab3a3af7]527 </variablelist>
[efe28817]528
[ab3a3af7]529 </sect2>
[efe28817]530
[f45b1953]531</sect1>
Note: See TracBrowser for help on using the repository browser.