install.xml revision 36461702119f178a2a47ca2fe3766a417e282402
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder<!DOCTYPE manualpage SYSTEM "/style/manualpage.dtd">
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder<?xml-stylesheet type="text/xsl" href="/style/manual.en.xsl"?>
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder<!-- $LastChangedRevision$ -->
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder Licensed to the Apache Software Foundation (ASF) under one or more
98890889ffb2e8f6f722b00e265a211f13b5a861Corneliu-Claudiu Prodescu contributor license agreements. See the NOTICE file distributed with
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder this work for additional information regarding copyright ownership.
6820f0de92751e29d73d64db48e776591f529a76Christian Maeder The ASF licenses this file to You under the Apache License, Version 2.0
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder (the "License"); you may not use this file except in compliance with
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder the License. You may obtain a copy of the License at
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder http://www.apache.org/licenses/LICENSE-2.0
6820f0de92751e29d73d64db48e776591f529a76Christian Maeder Unless required by applicable law or agreed to in writing, software
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder distributed under the License is distributed on an "AS IS" BASIS,
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
6820f0de92751e29d73d64db48e776591f529a76Christian Maeder See the License for the specific language governing permissions and
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder limitations under the License.
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <p>This document covers compilation and installation of the Apache HTTP Server
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder on Unix and Unix-like systems only. For compiling and
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder installation on Windows, see <a
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder href="platform/windows.html">Using Apache HTTP Server with Microsoft
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder Windows</a>. For other platforms, see the <a
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder href="platform/">platform</a> documentation.</p>
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <p>Apache httpd uses <code>libtool</code> and <code>autoconf</code>
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder to create a build environment that looks like many other Open Source
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <p>If you are upgrading from one minor version to the next (for
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder example, 2.2.50 to 2.2.51), please skip down to the <a
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder href="#upgrading">upgrading</a> section.</p>
c56a356d3fcc5e123efa790aab320781d94df3c7Jonathan von Schroeder<seealso><a href="programs/configure.html">Configure the source tree</a></seealso>
c56a356d3fcc5e123efa790aab320781d94df3c7Jonathan von Schroeder<seealso><a href="invoking.html">Starting Apache httpd</a></seealso>
c56a356d3fcc5e123efa790aab320781d94df3c7Jonathan von Schroeder<seealso><a href="stopping.html">Stopping and Restarting</a></seealso>
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder<section id="overview"><title>Overview for the
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder impatient</title>
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <columnspec><column width=".13"/><column width=".80"/></columnspec>
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <td><a href="#download">Download</a></td>
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder <td><code>$ lynx http://httpd.apache.org/download.cgi</code>
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <td><a href="#extract">Extract</a></td>
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <td><code>$ gzip -d httpd-<em>NN</em>.tar.gz<br />
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder $ tar xvf httpd-<em>NN</em>.tar<br />
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <td><a href="#configure">Configure</a></td>
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <td><code>$ /configure --prefix=<em>PREFIX</em></code>
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <td><a href="#compile">Compile</a></td>
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <td><a href="#install">Install</a></td>
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <td><code>$ make install</code> </td>
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <td><a href="#customize">Customize</a></td>
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder <td><code>$ vi <em>PREFIX</em>/conf/httpd.conf</code> </td>
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <td><code>$ <em>PREFIX</em>/bin/apachectl -k start</code>
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder <p><em>NN</em> must be replaced with the current version
d71447e45047d07006b4c20409fbd8ea287df01fJonathan von Schroeder number, and <em>PREFIX</em> must be replaced with the
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder filesystem path under which the server should be installed. If
d71447e45047d07006b4c20409fbd8ea287df01fJonathan von Schroeder <em>PREFIX</em> is not specified, it defaults to
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <p>Each section of the compilation and installation process is
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder described in more detail below, beginning with the requirements
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder for compiling and installing Apache httpd.</p>
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder<section id="requirements"><title>Requirements</title>
c56a356d3fcc5e123efa790aab320781d94df3c7Jonathan von Schroeder <p>The following requirements exist for building Apache httpd:</p>
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder <dd>Make sure you have at least 50 MB of temporary free disk
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder space available. After installation the server occupies
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder approximately 10 MB of disk space. The actual disk space
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder requirements will vary considerably based on your chosen
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder configuration options, any third-party modules, and, of course,
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder the size of the web site or sites that you have on the server.</dd>
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder <dt>ANSI-C Compiler and Build System</dt>
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <dd>Make sure you have an ANSI-C compiler installed. The <a
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder href="http://www.gnu.org/">Free Software Foundation (FSF)</a>
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder is recommended. If you don't have GCC
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder then at least make sure your vendor's compiler is ANSI
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder compliant. In addition, your <code>PATH</code> must contain
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder basic build tools such as <code>make</code>.</dd>
80d2ec8f37d5ddec13c14b17b1bab01e9c94630aChristian Maeder <dd>Elements of the HTTP protocol are expressed as the time of
a669e4685b32ff5ca1bca785eacc5e30a545b010Christian Maeder day. So, it's time to investigate setting some time
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder synchronization facility on your system. Usually the
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder <code>ntpdate</code> or <code>xntpd</code> programs are used for
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder this purpose which are based on the Network Time Protocol (NTP).
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder See the <a href="http://www.ntp.org">NTP
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder homepage</a> for more details about NTP software and public
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder time servers.</dd>
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder <dt><a href="http://www.perl.org/">Perl 5</a>
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder [OPTIONAL]</dt>
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <dd>For some of the support scripts like <program>
d71447e45047d07006b4c20409fbd8ea287df01fJonathan von Schroeder apxs</program> or <program>dbmmanage</program> (which are
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder written in Perl) the Perl 5 interpreter is required (versions
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder 5.003 or newer are sufficient). If you have multiple Perl
d71447e45047d07006b4c20409fbd8ea287df01fJonathan von Schroeder interpreters (for example, a systemwide install of Perl 4, and
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder your own install of Perl 5), you are advised to use the
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <code>--with-perl</code> option (see below) to make sure the
d71447e45047d07006b4c20409fbd8ea287df01fJonathan von Schroeder correct one is used by <program>configure</program>.
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder If no Perl 5 interpreter is found by the
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <program>configure</program> script, you will not be able to use
d71447e45047d07006b4c20409fbd8ea287df01fJonathan von Schroeder the affected support scripts. Of course, you will still be able to
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder build and use Apache httpd.</dd>
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder<section id="download"><title>Download</title>
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder <p>The Apache HTTP Server can be downloaded from the <a
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder href="http://httpd.apache.org/download.cgi">Apache HTTP Server
d71447e45047d07006b4c20409fbd8ea287df01fJonathan von Schroeder download site</a>, which lists several mirrors. Most users of
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder Apache on unix-like systems will be better off downloading and
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder compiling a source version. The build process (described below) is
d71447e45047d07006b4c20409fbd8ea287df01fJonathan von Schroeder easy, and it allows you to customize your server to suit your needs.
ece3b1a5353a9af3c966a1d5453594ed35334f7bJonathan von Schroeder In addition, binary releases are often not up to date with the latest
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder source releases. If you do download a binary, follow the instructions
d71447e45047d07006b4c20409fbd8ea287df01fJonathan von Schroeder in the <code>INSTALL.bindist</code> file inside the distribution.</p>
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder <p>After downloading, it is important to verify that you have a
d71447e45047d07006b4c20409fbd8ea287df01fJonathan von Schroeder complete and unmodified version of the Apache HTTP Server. This
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder can be accomplished by testing the downloaded tarball against the
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder PGP signature. Details on how to do this are available on the <a
d71447e45047d07006b4c20409fbd8ea287df01fJonathan von Schroeder href="http://httpd.apache.org/download.cgi#verify">download
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder page</a> and an extended example is available describing the <a
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder href="http://httpd.apache.org/dev/verification.html">use of
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder<section id="extract"><title>Extract</title>
d71447e45047d07006b4c20409fbd8ea287df01fJonathan von Schroeder <p>Extracting the source from the Apache HTTP Server tarball is a
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder simple matter of uncompressing, and then untarring:</p>
b35e053c2c5a5ea0f13decfd0303894861d82b4dJonathan von Schroeder$ gzip -d httpd-<em>NN</em>.tar.gz<br />
href="programs/configure.html#installationdirectories">configure
href="http://wiki.apache.org/httpd/DistrosDefaultLayout">description