source: server/major/apache.xml@ 28370fe

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules 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 28370fe was 28370fe, checked in by Fernando de Oliveira <fernando@…>, 9 years ago
  • More short descriptions from Denis Mugnier.
  • Fix main menu display problem for LXQT from hykwok1.
  • fontforge-20150824: --enable-debug requires libspiro.
  • Update to firefox-40.0.3.
  • Update to libreoffice-5.0.1.
  • Update to NetworkManager-1.0.6 and network-manager-applet-1.0.6.
  • Update to unrar-5.3.3.
  • Update to NSPR-4.10.9.
  • Update to libassuan-2.3.0.
  • Update to xterm-320.

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

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