configure.html.en revision 4bebf996eb7002ebfe897d46a0e0572390604a77
f062ed7bd262a37a909dd77ce5fc23b446818823fielding<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
f062ed7bd262a37a909dd77ce5fc23b446818823fielding<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
f062ed7bd262a37a909dd77ce5fc23b446818823fielding XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
f062ed7bd262a37a909dd77ce5fc23b446818823fielding This file is generated from xml source: DO NOT EDIT
2d2eda71267231c2526be701fe655db125852c1ffielding XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2d2eda71267231c2526be701fe655db125852c1ffielding<title>configure - Configure the source tree - Apache HTTP Server</title>
2d2eda71267231c2526be701fe655db125852c1ffielding<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
2d2eda71267231c2526be701fe655db125852c1ffielding<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
2d2eda71267231c2526be701fe655db125852c1ffielding<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
2d2eda71267231c2526be701fe655db125852c1ffielding<link href="/images/favicon.ico" rel="shortcut icon" /></head>
2d2eda71267231c2526be701fe655db125852c1ffielding<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>
2d2eda71267231c2526be701fe655db125852c1ffielding<p class="apache">Apache HTTP Server Version 2.3</p>
2d2eda71267231c2526be701fe655db125852c1ffielding<div class="up"><a href="./"><img title="<-" alt="<-" src="/images/left.gif" /></a></div>
f062ed7bd262a37a909dd77ce5fc23b446818823fielding<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.3</a> > <a href="./">Programs</a></div><div id="page-content"><div id="preamble"><h1>configure - Configure the source tree</h1>
f062ed7bd262a37a909dd77ce5fc23b446818823fielding<p><span>Available Languages: </span><a href="/en/programs/configure.html" title="English"> en </a> |
f062ed7bd262a37a909dd77ce5fc23b446818823fielding<a href="/ko/programs/configure.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> |
f062ed7bd262a37a909dd77ce5fc23b446818823fielding<a href="/tr/programs/configure.html" hreflang="tr" rel="alternate" title="T�rk�e"> tr </a></p>
f062ed7bd262a37a909dd77ce5fc23b446818823fielding <p>The <code>configure</code> script configures the source tree
f062ed7bd262a37a909dd77ce5fc23b446818823fielding for compiling and installing the Apache HTTP Server on your
f062ed7bd262a37a909dd77ce5fc23b446818823fielding particular platform. Various options allow the compilation of a
f062ed7bd262a37a909dd77ce5fc23b446818823fielding server corresponding to your personal requirements.</p>
f062ed7bd262a37a909dd77ce5fc23b446818823fielding <p>This script, included in the root directory of the source
f062ed7bd262a37a909dd77ce5fc23b446818823fielding distribution, is for compilation on Unix and Unix-like systems
64185f9824e42f21ca7b9ae6c004484215c031a7rbb only. For other platforms, see the <a href="/platform/">platform</a> documentation.</p>
f062ed7bd262a37a909dd77ce5fc23b446818823fielding<div id="quickview"><ul id="toc"><li><img alt="" src="/images/down.gif" /> <a href="#synopsis">Synopsis</a></li>
f062ed7bd262a37a909dd77ce5fc23b446818823fielding<li><img alt="" src="/images/down.gif" /> <a href="#options">Options</a></li>
f062ed7bd262a37a909dd77ce5fc23b446818823fielding<li><img alt="" src="/images/down.gif" /> <a href="#env">Environment variables</a></li>
f062ed7bd262a37a909dd77ce5fc23b446818823fielding</ul><h3>See also</h3><ul class="seealso"><li><a href="/install.html">Compiling and Installing</a></li></ul></div>
2d2eda71267231c2526be701fe655db125852c1ffielding<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
f062ed7bd262a37a909dd77ce5fc23b446818823fielding<h2><a name="synopsis" id="synopsis">Synopsis</a></h2>
f062ed7bd262a37a909dd77ce5fc23b446818823fielding <p>You should call the <code>configure</code> script from within the
f062ed7bd262a37a909dd77ce5fc23b446818823fielding root directory of the distribution.</p>
f062ed7bd262a37a909dd77ce5fc23b446818823fielding <p><code><strong>/configure</strong> [<var>OPTION</var>]...
2d2eda71267231c2526be701fe655db125852c1ffielding <p>To assign environment variables (e.g. <code>CC</code>,
f062ed7bd262a37a909dd77ce5fc23b446818823fielding <code><var>VAR</var>=<var>VALUE</var></code>. See <a href="#env">below</a>
f062ed7bd262a37a909dd77ce5fc23b446818823fielding for descriptions of some of the useful variables.</p>
f062ed7bd262a37a909dd77ce5fc23b446818823fielding</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
f062ed7bd262a37a909dd77ce5fc23b446818823fielding <li><a href="#configurationoptions">Configuration options</a></li>
2d2eda71267231c2526be701fe655db125852c1ffielding <li><a href="#installationdirectories">Installation directories</a></li>
2d2eda71267231c2526be701fe655db125852c1ffielding <li><a href="#optionalfeatures">Optional features</a></li>
2d2eda71267231c2526be701fe655db125852c1ffielding <li><a href="#supportopt">Options for support programs</a></li>
ab5581cc78e9d865b0a6ab1404c53347b3276968rbb <h3><a name="configurationoptions" id="configurationoptions">Configuration options</a></h3>
fd0edaa8e3d4dd67d0604ccef2e96b071db96643fielding <p>The following options influence the behavior of
2d2eda71267231c2526be701fe655db125852c1ffielding <dd>This is an alias for <code>--cache-file=config.cache</code></dd>
2d2eda71267231c2526be701fe655db125852c1ffielding <dd>The test results will be cached in file <var>FILE</var>.
2d2eda71267231c2526be701fe655db125852c1ffielding This option is disabled by default.</dd>
2d2eda71267231c2526be701fe655db125852c1ffielding <dd>Output the help and exit. With the argument <code>short</code> only
2d2eda71267231c2526be701fe655db125852c1ffielding options specific to this package will displayed. The argument
2d2eda71267231c2526be701fe655db125852c1ffielding <code>recursive</code> displays the short help of all the included
2d2eda71267231c2526be701fe655db125852c1ffielding packages.</dd>
2d2eda71267231c2526be701fe655db125852c1ffielding <dd>The <code>configure</code> script is run normally but does
2d2eda71267231c2526be701fe655db125852c1ffielding not create output files. This is useful to check the test results
2d2eda71267231c2526be701fe655db125852c1ffielding before generating makefiles for compilation.</dd>
2d2eda71267231c2526be701fe655db125852c1ffielding <dd>Do not print <code>checking ...</code> messages during the
2d2eda71267231c2526be701fe655db125852c1ffielding configure process.</dd>
2d2eda71267231c2526be701fe655db125852c1ffielding <dd>Defines directory <var>DIR</var> to be the source file directory.
2d2eda71267231c2526be701fe655db125852c1ffielding Default is the directory where <code>configure</code> is located, or
2d2eda71267231c2526be701fe655db125852c1ffielding the parent directory.</dd>
2d2eda71267231c2526be701fe655db125852c1ffielding <h3><a name="installationdirectories" id="installationdirectories">Installation
2d2eda71267231c2526be701fe655db125852c1ffielding <p>These options define the installation directory. The installation
2d2eda71267231c2526be701fe655db125852c1ffielding tree depends on the selected layout.</p>
2d2eda71267231c2526be701fe655db125852c1ffielding <dd>Install architecture-independent files in <var>PREFIX</var>.
2d2eda71267231c2526be701fe655db125852c1ffielding By default the installation directory is set to
2d2eda71267231c2526be701fe655db125852c1ffielding <dt><code>--exec-prefix=<var>EPREFIX</var></code></dt>
6db54801798f6021bb464de7b3fdcc9dc3150f7bdgaudet <dd>Install architecture-dependent files in <var>EPREFIX</var>.
2d2eda71267231c2526be701fe655db125852c1ffielding By default the installation directory is set to the
2d2eda71267231c2526be701fe655db125852c1ffielding <p>By default, <code>make install</code> will install all the files in
2d2eda71267231c2526be701fe655db125852c1ffielding <code>/usr/local/apache2/bin</code>, <code>/usr/local/apache2/lib</code>
2d2eda71267231c2526be701fe655db125852c1ffielding etc. You can specify an installation prefix other than
2d2eda71267231c2526be701fe655db125852c1ffielding <code>/usr/local/apache2</code> using <code>--prefix</code>,
2d2eda71267231c2526be701fe655db125852c1ffielding <h4><a name="layout" id="layout">Define a directory layout</a></h4>
2d2eda71267231c2526be701fe655db125852c1ffielding <dt><code>--enable-layout=<var>LAYOUT</var></code></dt>
2d2eda71267231c2526be701fe655db125852c1ffielding <dd>Configure the source code and build scripts to assume an
2d2eda71267231c2526be701fe655db125852c1ffielding installation tree based on the layout <var>LAYOUT</var>. This allows
2d2eda71267231c2526be701fe655db125852c1ffielding you to separately specify the locations for each type of file within
fb624289ed97601692c8586d8c5775a9b1a293d1stoddard the Apache HTTP Server installation. The <code>config.layout</code>
fb624289ed97601692c8586d8c5775a9b1a293d1stoddard file contains several example configurations, and you can also create
2d2eda71267231c2526be701fe655db125852c1ffielding your own custom configuration following the examples. The different
2d2eda71267231c2526be701fe655db125852c1ffielding layouts in this file are grouped into <code><Layout
2d2eda71267231c2526be701fe655db125852c1ffielding FOO>...</Layout></code> sections and referred to by name as
2d2eda71267231c2526be701fe655db125852c1ffielding in <code>FOO</code>. The default layout is <code>Apache</code>.</dd>
2d2eda71267231c2526be701fe655db125852c1ffielding <h4><a name="directoryfinetuning" id="directoryfinetuning">Fine tuning of the installation
2d2eda71267231c2526be701fe655db125852c1ffielding <p>For better control of the installation directories, use the options
2d2eda71267231c2526be701fe655db125852c1ffielding below. Please note that the directory defaults are set by
2d2eda71267231c2526be701fe655db125852c1ffielding <code>autoconf</code> and are overwritten by the corresponding layout
2d2eda71267231c2526be701fe655db125852c1ffielding setting.</p>
2d2eda71267231c2526be701fe655db125852c1ffielding <dd>Install user executables in <var>DIR</var>. The user executables
2d2eda71267231c2526be701fe655db125852c1ffielding are supporting programs like <code class="program"><a href="/programs/htpasswd.html">htpasswd</a></code>,
2d2eda71267231c2526be701fe655db125852c1ffielding <code class="program"><a href="/programs/dbmmanage.html">dbmmanage</a></code>, etc. which are useful for site
2d2eda71267231c2526be701fe655db125852c1ffielding administrators. By default <var>DIR</var> is set to
2d2eda71267231c2526be701fe655db125852c1ffielding <dd>Install read-only architecture-independent data in <var>DIR</var>.
2d2eda71267231c2526be701fe655db125852c1ffielding <code><var>PREFIX</var>/share</code>. This option is offered by
2d2eda71267231c2526be701fe655db125852c1ffielding <dd>Install C header files in <var>DIR</var>. By default
90b04fe47abd0a909509d38477fe6e9b3aa4691aben <code><var>PREFIX</var>/info</code>. This option is currently
2d2eda71267231c2526be701fe655db125852c1ffielding unused.</dd>
2d2eda71267231c2526be701fe655db125852c1ffielding <dd>Install object code libraries in <var>DIR</var>. By default
2d2eda71267231c2526be701fe655db125852c1ffielding <dd>Install the program executables (i.e., shared modules) in
000b67449410515eac43e76ef6667915bfd4d2abgstein <var>DIR</var>. By default <code>libexecdir</code> is set to
2d2eda71267231c2526be701fe655db125852c1ffielding <dd>Install modifiable single-machine data in <var>DIR</var>.
2d2eda71267231c2526be701fe655db125852c1ffielding <code><var>PREFIX</var>/var</code>. This option is offered by
2d2eda71267231c2526be701fe655db125852c1ffielding <dd>Install the man documentation in <var>DIR</var>. By default
2d2eda71267231c2526be701fe655db125852c1ffielding <dt><code>--oldincludedir=<var>DIR</var></code></dt>
2d2eda71267231c2526be701fe655db125852c1ffielding <dd>Install C header files for non-gcc in <var>DIR</var>.
2d2eda71267231c2526be701fe655db125852c1ffielding <code>/usr/include</code>. This option is offered by
2d2eda71267231c2526be701fe655db125852c1ffielding <dd>Install the system administrator executables in <var>DIR</var>.
2d2eda71267231c2526be701fe655db125852c1ffielding Those are server programs like <code class="program"><a href="/programs/httpd.html">httpd</a></code>,
2d2eda71267231c2526be701fe655db125852c1ffielding <code class="program"><a href="/programs/apachectl.html">apachectl</a></code>, <code class="program"><a href="/programs/suexec.html">suexec</a></code>, etc. which
2d2eda71267231c2526be701fe655db125852c1ffielding are necessary to run the Apache HTTP Server. By default
2d2eda71267231c2526be701fe655db125852c1ffielding <dt><code>--sharedstatedir=<var>DIR</var></code></dt>
2d2eda71267231c2526be701fe655db125852c1ffielding <dd>Install modifiable architecture-independent data in <var>DIR</var>.
2d2eda71267231c2526be701fe655db125852c1ffielding <code><var>PREFIX</var>/com</code>. This option is offered by
2d2eda71267231c2526be701fe655db125852c1ffielding <dd>Install read-only single-machine data like the server configuration
fd0edaa8e3d4dd67d0604ccef2e96b071db96643fielding files <code>httpd.conf</code>, <code>mime.types</code>, etc. in
fd0edaa8e3d4dd67d0604ccef2e96b071db96643fielding <var>DIR</var>. By default <code>sysconfdir</code> is set to
36bb027ff0af9d285d15e9fac4fc956db6c33e94wrowe <h3><a name="systemtypes" id="systemtypes">System types</a></h3>
fd0edaa8e3d4dd67d0604ccef2e96b071db96643fielding <p>These options are used to cross-compile the Apache HTTP Server to run on
2d2eda71267231c2526be701fe655db125852c1ffielding another system. In normal cases, when building and running the server on
2d2eda71267231c2526be701fe655db125852c1ffielding the same system, these options are not used.</p>
dynamically by using the <code class="directive"><a href="/mod/mod_so.html#loadmodule">LoadModule</a></code> directive.</p>
<p>The <code class="directive"><a href="/mod/mod_so.html#loadmodule">LoadModule</a></code> directives for
of loaded modules by activating or deactivating the <code class="directive"><a href="/mod/mod_so.html#loadmodule">LoadModule</a></code> directives in
<code class="directive"><a href="/mod/mod_so.html#loadmodule">LoadModule</a></code> directives for all
--enable-mods-shared="all ssl ldap cache proxy authn_alias file_cache authnz_ldap charset_lite dav_lock cache_disk"
will always be present while running <code class="program"><a href="/programs/httpd.html">httpd</a></code>. They need
not be loaded with <code class="directive"><a href="/mod/mod_so.html#loadmodule">LoadModule</a></code>.</dd>
<dd>This defines the port on which <code class="program"><a href="/programs/httpd.html">httpd</a></code> will listen.
<dd>The <a class="glossarylink" href="/glossary.html#apr" title="see glossary">Apache Portable Runtime</a> (APR)
<dd>If <code class="module"><a href="/mod/mod_ssl.html">mod_ssl</a></code> has been enabled <code>configure</code>
(e.g., when <code class="module"><a href="/mod/mod_deflate.html">mod_deflate</a></code> is enabled). You can set the
<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 DBM
<dd>Use this option to enable <code class="program"><a href="/programs/suexec.html">suexec</a></code>, which allows you to set
to configure <code class="program"><a href="/programs/suexec.html">suexec</a></code> are described <a href="#suexec">below</a>.</dd>
<dd>Build a statically linked version of <code class="program"><a href="/programs/ab.html">ab</a></code>.</dd>
<dd>Build a statically linked version of <code class="program"><a href="/programs/htdbm.html">htdbm</a></code>.</dd>
<dd>Build a statically linked version of <code class="program"><a href="/programs/htdigest.html">htdigest</a></code>.</dd>
<dd>Build a statically linked version of <code class="program"><a href="/programs/htpasswd.html">htpasswd</a></code>.</dd>
<dd>Build a statically linked version of <code class="program"><a href="/programs/logresolve.html">logresolve</a></code>.</dd>
<dd>Build a statically linked version of <code class="program"><a href="/programs/rotatelogs.html">rotatelogs</a></code>.</dd>
<p>The following options are used to fine tune the behavior of <code class="program"><a href="/programs/suexec.html">suexec</a></code>. See <a href="suexec.html#install">Configuring and installing suEXEC</a>
<dd>This defines the path to <code class="program"><a href="/programs/suexec.html">suexec</a></code> binary.
Default is <code>--sbindir</code> (see <a href="#directoryfinetuning">Fine tuning of installation directories</a>).</dd>
<dd>This defines the user allowed to call <code class="program"><a href="/programs/suexec.html">suexec</a></code>.
<dd>This defines the directory tree under which <code class="program"><a href="/programs/suexec.html">suexec</a></code> access is allowed for executables. Default value is
<code class="program"><a href="/programs/suexec.html">suexec</a></code>. The default value is 100.</dd>
<dd>This defines the filename of the <code class="program"><a href="/programs/suexec.html">suexec</a></code> logfile.
be set for processes started by <code class="program"><a href="/programs/suexec.html">suexec</a></code>. Default
contains all executables for which <code class="program"><a href="/programs/suexec.html">suexec</a></code> access
<code class="program"><a href="/programs/suexec.html">suexec</a></code> together with user-specific directories (as
provided by <code class="module"><a href="/mod/mod_userdir.html">mod_userdir</a></code>). The default is
<code class="program"><a href="/programs/suexec.html">suexec</a></code>. The default value is 100.</dd>
<code class="program"><a href="/programs/suexec.html">suexec</a></code>. It defaults to your system settings.</dd>
<p><span>Available Languages: </span><a href="/en/programs/configure.html" title="English"> en </a> |
<a href="/ko/programs/configure.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> |
<a href="/tr/programs/configure.html" hreflang="tr" rel="alternate" title="T�rk�e"> tr </a></p>
<p class="apache">Copyright 2011 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</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>