📄 configure.html.en
字号:
<dd>Define an alternative executable name. The default is <code>httpd</code>.</dd> </dl> <h3><a name="packages" id="packages">Optional packages</a></h3> <p>These options are used to define optional packages.</p> <h4><a name="generalpackages" id="generalpackages">General syntax</a></h4> <p>Generally you can use the following syntax to define an optional package:</p> <dl> <dt><code>--with-<var>PACKAGE</var>[=<var>ARG</var>]</code></dt> <dd>Use the package <var>PACKAGE</var>. The default value for <var>ARG</var> is<code>yes</code>.</dd> <dt><code>--without-<var>PACKAGE</var></code></dt> <dd>Do not use the package <var>PACKAGE</var>. This is the same as <code>--with-<var>PACKAGE</var>=no</code>. This option is provided by <code>autoconf</code> but not very useful for the Apache HTTP Server.</dd> </dl> <h4><a name="packageopt" id="packageopt">Specific packages</a></h4> <dl> <dt><code>--with-apr=<var>DIR</var>|<var>FILE</var></code></dt> <dd>The Apache Portable Runtime (APR) is part of the httpd source distribution and will automatically be build together with the HTTP server. If you want to use an already installed APR instead you have to tell <code>configure</code> the path to the <code>apr-config</code> script. You may set the absolute path and name or the directory to the installed APR. <code>apr-config</code> must exists within this directory or the subdirectory <code>bin</code>.</dd> <dt><code>--with-apr-util=<var>DIR</var>|<var>FILE</var></code></dt> <dd>The Apache Portable Runtime Utilities (APU) are part of the httpd source distribution and will automatically be build together with the HTTP server. If you want to use an already installed APU instead you have to tell <code>configure</code> the path to the <code>apu-config</code> script. You may set the absolute path and name or the directory to the installed APU. <code>apu-config</code> must exists within this directory or the subdirectory <code>bin</code>.</dd> <dt><code>--with-ssl=<var>DIR</var></code></dt> <dd>If <code class="module"><a href="../mod/mod_ssl.html">mod_ssl</a></code> has been enabled <code>configure</code> searches for an installed OpenSSL. You can set the directory path to the SSL/TLS toolkit instead.</dd> <dt><code>--with-z=<var>DIR</var></code></dt> <dd><code>configure</code> searches automatically for an installed <code>zlib</code> library if your source configuration requires one (e.g., when <code class="module"><a href="../mod/mod_deflate.html">mod_deflate</a></code> is enabled). You can set the directory path to the compression library instead.</dd> </dl> <p>Several features of the Apache HTTP Server, including <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 <code class="directive"><a href="../mod/mod_rewrite.html#rewritemap">RewriteMap</a></code> use simple key/value databases for quick lookups of information. SDBM is included in the APU, so this database is always available. If you would like to use other database types, use the following options to enable them:</p> <dl> <dt><code>--with-gdbm[=<var>path</var>]</code></dt> <dd>If no <var>path</var> is specified, <code>configure</code> will search for the include files and libraries of a GNU DBM installation in the usual search paths. An explicit <var>path</var> will cause <code>configure</code> to look in <code><var>path</var>/lib</code> and <code><var>path</var>/include</code> for the relevant files. Finally, the <var>path</var> may specify specific include and library paths separated by a colon.</dd> <dt><code>--with-ndbm[=<var>path</var>]</code></dt> <dd>Like <code>--with-gdbm</code>, bur searches for a New DBM installation.</dd> <dt><code>--with-berkeley-db[=<var>path</var>]</code></dt> <dd>Like <code>--with-gdbm</code>, but searches for a Berkeley DB installation.</dd> </dl> <div class="note"><h3>Note</h3> <p>The DBM options are provided by the APU and passed through to its configuration script. They are useless when using an already installed APU defined by <code>--with-apr-util</code>.</p> <p>You may use more then one DBM implementation together with your HTTP server. The appropriated DBM type will be configured within the runtime configuration at each time.</p> </div> <h3><a name="supportopt" id="supportopt">Options for support programs</a></h3> <dl> <dt><code>--enable-static-support</code></dt> <dd>Build a statically linked version of the support binaries. This means, a stand-alone executable will be built with all the necessary libraries integrated. Otherwise the support binaries are linked dynamically by default.</dd> <dt><code>--enable-suexec</code></dt> <dd>Use this option to enable <code class="program"><a href="../programs/suexec.html">suexec</a></code>, which allows you to set uid and gid for spawned processes. <strong>Do not use this option unless you understand all the security implications of running a suid binary on your server.</strong> Further options to configure <code class="program"><a href="../programs/suexec.html">suexec</a></code> are described <a href="#suexec">below</a>.</dd> </dl> <p>It is possible to create a statically linked binary of a single support program by using the following options:</p> <dl> <dt><code>--enable-static-ab</code></dt> <dd>Build a statically linked version of <code class="program"><a href="../programs/ab.html">ab</a></code>.</dd> <dt><code>--enable-static-checkgid</code></dt> <dd>Build a statically linked version of <code>checkgid</code>.</dd> <dt><code>--enable-static-htdbm</code></dt> <dd>Build a statically linked version of <code class="program"><a href="../programs/htdbm.html">htdbm</a></code>.</dd> <dt><code>--enable-static-htdigest</code></dt> <dd>Build a statically linked version of <code class="program"><a href="../programs/htdigest.html">htdigest</a></code>.</dd> <dt><code>--enable-static-htpasswd</code></dt> <dd>Build a statically linked version of <code class="program"><a href="../programs/htpasswd.html">htpasswd</a></code>.</dd> <dt><code>--enable-static-logresolve</code></dt> <dd>Build a statically linked version of <code class="program"><a href="../programs/logresolve.html">logresolve</a></code>.</dd> <dt><code>--enable-static-rotatelogs</code></dt> <dd>Build a statically linked version of <code class="program"><a href="../programs/rotatelogs.html">rotatelogs</a></code>.</dd> </dl> <h4><a name="suexec" id="suexec">suexec configuration options</a></h4> <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> for further information.</p> <dl> <dt><code>--with-suexec-bin</code></dt> <dd>This defines the path to suexec binary. Default is <code>--sbindir</code> (see <a href="directoryfinetuning">Fine tuning of installation directories</a>).</dd> <dt><code>--with-suexec-caller</code></dt> <dd>This defines the user allowed to call <code class="program"><a href="../programs/suexec.html">suexec</a></code>. It should be the same as the user under which <code class="program"><a href="../programs/httpd.html">httpd</a></code> normally runs.</dd> <dt><code>--with-suexec-docroot</code></dt> <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>--datadir/htdocs</code>.</dd> <dt><code>--with-suexec-gidmin</code></dt> <dd>Define this as the lowest GID allowed to be a target user for <code class="program"><a href="../programs/suexec.html">suexec</a></code>. The default value is 100.</dd> <dt><code>--with-suexec-logfile</code></dt> <dd>This defines the filename of the <code class="program"><a href="../programs/suexec.html">suexec</a></code> logfile. By default the logfile is named <code>suexec_log</code> and located in <code>--logfiledir</code>.</dd> <dt><code>--with-suexec-safepath</code></dt> <dd>Define the value of the environment variable <code>PATH</code> to be set for processes started by <code class="program"><a href="../programs/suexec.html">suexec</a></code>. Default value is <code>/usr/local/bin:/usr/bin:/bin</code>.</dd> <dt><code>--with-suexec-userdir</code></dt> <dd>This defines the subdirectory under the user's directory that contains all executables for which <code class="program"><a href="../programs/suexec.html">suexec</a></code> access is allowed. This setting is necessary when you want to use <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>public_html</code>.</dd> <dt><code>--with-suexec-uidmin</code></dt> <dd>Define this as the lowest UID allowed to be a target user for <code class="program"><a href="../programs/suexec.html">suexec</a></code>. The default value is 100.</dd> <dt><code>--with-suexec-umask</code></dt> <dd>Set <code>umask</code> for processes started by <code class="program"><a href="../programs/suexec.html">suexec</a></code>. It defaults to your system settings.</dd> </dl> </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div><div class="section"><h2><a name="env" id="env">Environment variables</a></h2> <p>There are some useful environment variables to override the choices made by <code>configure</code> or to help it to find libraries and programs with nonstandard names or locations.</p> <dl> <dt><code>CC</code></dt> <dd>Define the C compiler command to be used for compilation.</dd> <dt><code>CFLAGS</code></dt> <dd>Set C compiler flags you want to use for compilation.</dd> <dt><code>CPP</code></dt> <dd>Define the C preprocessor command to be used.</dd> <dt><code>CPPFLAGS</code></dt> <dd>Set C/C++ preprocessor flags, e.g. <code>-I<var>includedir</var></code> if you have headers in a nonstandard directory <var>includedir</var>.</dd> <dt><code>LDFLAGS</code></dt> <dd>Set linker flags, e.g. <code>-L<var>libdir</var></code> if you have libraries in a nonstandard directory <var>libdir</var>.</dd> </dl></div></div><div class="bottomlang"><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></p></div><div id="footer"><p class="apache">Copyright 2007 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></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -