install.html.en revision 53611890f8362e5037cd756eee0f91fb7a89e95e
97a9a944b5887e91042b019776c41d5dd74557aferikabele<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
97a9a944b5887e91042b019776c41d5dd74557aferikabele<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive This file is generated from xml source: DO NOT EDIT
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5a58787efeb02a1c3f06569d019ad81fd2efa06end<title>Compiling and Installing - Apache HTTP Server</title>
5a58787efeb02a1c3f06569d019ad81fd2efa06end<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
5a58787efeb02a1c3f06569d019ad81fd2efa06end<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
5a58787efeb02a1c3f06569d019ad81fd2efa06end<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
5a58787efeb02a1c3f06569d019ad81fd2efa06end<link href="/images/favicon.ico" rel="shortcut icon" /></head>
5a58787efeb02a1c3f06569d019ad81fd2efa06end<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/directives.html">Directives</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">Glossary</a> | <a href="/sitemap.html">Sitemap</a></p>
5a58787efeb02a1c3f06569d019ad81fd2efa06end<div class="up"><a href="./"><img title="<-" alt="<-" src="/images/left.gif" /></a></div>
5a58787efeb02a1c3f06569d019ad81fd2efa06end<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs-project/">Documentation</a> > <a href="./">Version 2.1</a></div><div id="page-content"><div id="preamble"><h1>Compiling and Installing</h1>
5a58787efeb02a1c3f06569d019ad81fd2efa06end <p>This document covers compilation and installation of Apache
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd on Unix and Unix-like systems only. For compiling and
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd installation on Windows, see <a href="platform/windows.html">Using Apache with Microsoft
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd Windows</a>. For other platforms, see the <a href="platform/">platform</a> documentation.</p>
e1e8390280254f7f0580d701e583f670643d4f3fnilgun <p>Apache 2.0's configuration and installation environment has
e1e8390280254f7f0580d701e583f670643d4f3fnilgun changed completely from Apache 1.3. Apache 1.3 used a custom
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd set of scripts to achieve easy installation. Apache 2.0 now
5a58787efeb02a1c3f06569d019ad81fd2efa06end to create an environment that looks like many other Open Source
5a58787efeb02a1c3f06569d019ad81fd2efa06end projects.</p>
5a58787efeb02a1c3f06569d019ad81fd2efa06end<div id="quickview"><ul id="toc"><li><img alt="" src="/images/down.gif" /> <a href="#overview">Overview for the
9b6a3a558cc90ffdaa0b50bd02546ffec424ded7slive<li><img alt="" src="/images/down.gif" /> <a href="#requirements">Requirements</a></li>
9b6a3a558cc90ffdaa0b50bd02546ffec424ded7slive<li><img alt="" src="/images/down.gif" /> <a href="#download">Download</a></li>
9b6a3a558cc90ffdaa0b50bd02546ffec424ded7slive<li><img alt="" src="/images/down.gif" /> <a href="#extract">Extract</a></li>
9b6a3a558cc90ffdaa0b50bd02546ffec424ded7slive<li><img alt="" src="/images/down.gif" /> <a href="#configure">Configuring the source tree</a></li>
9b6a3a558cc90ffdaa0b50bd02546ffec424ded7slive<li><img alt="" src="/images/down.gif" /> <a href="#compile">Build</a></li>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive<li><img alt="" src="/images/down.gif" /> <a href="#install">Install</a></li>
9b6a3a558cc90ffdaa0b50bd02546ffec424ded7slive<li><img alt="" src="/images/down.gif" /> <a href="#customize">Customize</a></li>
9b6a3a558cc90ffdaa0b50bd02546ffec424ded7slive<li><img alt="" src="/images/down.gif" /> <a href="#test">Test</a></li>
97a9a944b5887e91042b019776c41d5dd74557aferikabele</ul><h3>See also</h3><ul class="seealso"><li><a href="invoking.html">Starting Apache</a></li><li><a href="stopping.html">Stopping and Restarting</a></li></ul></div>
9b6a3a558cc90ffdaa0b50bd02546ffec424ded7slive<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
117c1f888a14e73cdd821dc6c23eb0411144a41cnd http://www.apache.org/dist/httpd/httpd-2_1_<em>NN</em>.tar.gz</code>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <td><code>$ vi <em>PREFIX</em>/conf/httpd.conf</code> </td>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <td><code>$ <em>PREFIX</em>/bin/apachectl start</code>
97a9a944b5887e91042b019776c41d5dd74557aferikabele <p><em>NN</em> must be replaced with the current minor version
06ba4a61654b3763ad65f52283832ebf058fdf1cslive filesystem path under which the server should be installed. If
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd <p>Each section of the compilation and installation process is
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd described in more detail below, beginning with the requirements
06ba4a61654b3763ad65f52283832ebf058fdf1cslive for compiling and installing Apache HTTPD.</p>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive<h2><a name="requirements" id="requirements">Requirements</a></h2>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <p>The following requirements exist for building Apache:</p>
5a58787efeb02a1c3f06569d019ad81fd2efa06end <dd>Make sure you have at least 50 MB of temporary free disk
5a58787efeb02a1c3f06569d019ad81fd2efa06end space available. After installation Apache occupies
5a58787efeb02a1c3f06569d019ad81fd2efa06end approximately 10 MB of disk space. The actual disk space
9fc1345bb54ea7f68c2e59ff3a618c1237a30918yoshiki requirements will vary considerably based on your chosen
5a58787efeb02a1c3f06569d019ad81fd2efa06end configuration options and any third-party modules.</dd>
5a58787efeb02a1c3f06569d019ad81fd2efa06end <dd>Make sure you have an ANSI-C compiler installed. The <a href="http://www.gnu.org/software/gcc/gcc.html">GNU C
5a58787efeb02a1c3f06569d019ad81fd2efa06end compiler (GCC)</a> from the <a href="http://www.gnu.org/">Free Software Foundation (FSF)</a>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive is recommended (version 2.7.2 is fine). If you don't have GCC
06ba4a61654b3763ad65f52283832ebf058fdf1cslive then at least make sure your vendor's compiler is ANSI
06ba4a61654b3763ad65f52283832ebf058fdf1cslive compliant. In addition, your <code>PATH</code> must contain
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <dd>Elements of the HTTP protocol are expressed as the time of
06ba4a61654b3763ad65f52283832ebf058fdf1cslive day. So, it's time to investigate setting some time
f989aee1278b24f2b6e3a8e3b0935b590349de81jorton synchronization facility on your system. Usually the
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd <code>ntpdate</code> or <code>xntpd</code> programs are used for
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd this purpose which are based on the Network Time Protocol (NTP).
5a58787efeb02a1c3f06569d019ad81fd2efa06end See the Usenet newsgroup <a href="news:comp.protocols.time.ntp">comp.protocols.time.ntp</a>
5a58787efeb02a1c3f06569d019ad81fd2efa06end homepage</a> for more details about NTP software and public
5a58787efeb02a1c3f06569d019ad81fd2efa06end time servers.</dd>
5a58787efeb02a1c3f06569d019ad81fd2efa06end [OPTIONAL]</dt>
5a58787efeb02a1c3f06569d019ad81fd2efa06end <dd>For some of the support scripts like <a href="programs/apxs.html">apxs</a> or <a href="programs/dbmmanage.html">dbmmanage</a> (which are
5a58787efeb02a1c3f06569d019ad81fd2efa06end written in Perl) the Perl 5 interpreter is required (versions
5a58787efeb02a1c3f06569d019ad81fd2efa06end 5.003 or newer are sufficient). If no such interpreter is found by
5a58787efeb02a1c3f06569d019ad81fd2efa06end the `<code>configure</code>' script there is no harm. Of course, you
5a58787efeb02a1c3f06569d019ad81fd2efa06end still can build and install Apache 2.0. Only those support scripts
a63f0ab647ad2ab72efc9bea7a66e24e9ebc5cc2nd cannot be used. If you have multiple Perl interpreters
5a58787efeb02a1c3f06569d019ad81fd2efa06end installed (perhaps a Perl 4 from the vendor and a Perl 5 from
5a58787efeb02a1c3f06569d019ad81fd2efa06end your own), then it is recommended to use the <code>--with-perl</code>
5a58787efeb02a1c3f06569d019ad81fd2efa06end option (see below) to make sure the correct one is selected
06ba4a61654b3763ad65f52283832ebf058fdf1cslive</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
06ba4a61654b3763ad65f52283832ebf058fdf1cslive <p>Apache can be downloaded from the <a href="http://httpd.apache.org/download.cgi">Apache HTTP Server
06ba4a61654b3763ad65f52283832ebf058fdf1cslive download site</a> which lists several mirrors. You'll find here
06ba4a61654b3763ad65f52283832ebf058fdf1cslive the latest stable release.</p>
5a58787efeb02a1c3f06569d019ad81fd2efa06end <p>After downloading, especially if a mirror site is used, it
5a58787efeb02a1c3f06569d019ad81fd2efa06end is important to verify that you have a complete and unmodified
5a58787efeb02a1c3f06569d019ad81fd2efa06end version of the Apache HTTP Server. This can be accomplished by
5a58787efeb02a1c3f06569d019ad81fd2efa06end testing the downloaded tarball against the PGP signature. This,
5a58787efeb02a1c3f06569d019ad81fd2efa06end in turn, is a two step procedure. First, you must obtain the
5a58787efeb02a1c3f06569d019ad81fd2efa06end <a href="http://www.apache.org/dist/httpd/KEYS"><code>KEYS</code></a>
5a58787efeb02a1c3f06569d019ad81fd2efa06end file from the Apache distribution site, too. (To assure that the
5a58787efeb02a1c3f06569d019ad81fd2efa06end <code>KEYS</code> file itself has not been modified, it may be a good
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd idea to use a file from a previous distribution of Apache or import
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd the keys from a public key server.) The keys are imported into
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd your personal key ring using one of the following commands (depending
e1e8390280254f7f0580d701e583f670643d4f3fnilgun on your pgp version):</p>
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd<div class="example"><p><code>$ pgp < KEYS</code></p></div>
signature, which should always be obtained from the <a href="http://httpd.apache.org/download.cgi">main Apache
plus the two additional modules <code class="module"><a href="/mod/mod_rewrite.html">mod_rewrite</a></code> and
the documentation. Those modules with a <a href="mod/module-dict.html#Status">status</a> of "Base" are
not want them (e.g. <code class="module"><a href="/mod/mod_userdir.html">mod_userdir</a></code>). Modules with any
enable <code class="module"><a href="/mod/mod_dav.html">mod_dav</a></code> and <code class="module"><a href="/mod/mod_info.html">mod_info</a></code>,
/configure --enable-mods-shared=all
<code class="module"><a href="/mod/mod_authn_dbm.html">mod_authn_dbm</a></code> and <code class="module"><a href="/mod/mod_rewrite.html">mod_rewrite</a></code>'s
<p>Apache includes a support program called <a href="suexec.html">suexec</a> which can be used to isolate user
<p>Have a look at the Apache manual under <a href="./">docs/manual/</a> or consult <a href="http://httpd.apache.org/docs-2.1/">http://httpd.apache.org/docs-2.1/</a> for the most recent version of
this manual and a complete reference of available <a href="mod/directives.html">configuration directives</a>.</p>
<p class="apache">Maintained by the <a href="http://httpd.apache.org/docs-project/">Apache HTTP Server Documentation Project</a></p>
<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/directives.html">Directives</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">Glossary</a> | <a href="/sitemap.html">Sitemap</a></p></div>