Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.sao.ru/ztcs/manual/en/programs/configure.html
Дата изменения: Mon Feb 25 15:09:02 2008 Дата индексирования: Sun Apr 10 16:17:26 2016 Кодировка: |
Apache HTTP Server Version 2.2
The configure
script configures the source tree
for compiling and installing the Apache HTTP Server on your
particular platform. Various options allow the compilation of a
server corresponding to your personal requirements.
This script, included in the root directory of the source distribution, is for compilation on Unix and Unix-like systems only. For other platforms, see the platform documentation.
You should call the configure
script from within the
root directory of the distribution.
./configure [OPTION]...
[VAR=VALUE]...
To assign environment variables (e.g. CC
,
CFLAGS
...), specify them as
VAR=VALUE
. See below
for descriptions of some of the useful variables.
The following options influence the behavior of
configure
itself.
-C
--config-cache
--cache-file=config.cache
--cache-file=FILE
-h
--help [short|recursive]
short
only
options specific to this package will displayed. The argument
recursive
displays the short help of all the included
packages.-n
--no-create
configure
script is run normally but does
not create output files. This is useful to check the test results
before generating makefiles for compilation.-q
--quiet
checking ...
messages during the
configure process.--srcdir=DIR
configure
is located, or
the parent directory.--silent
--quiet
These options define the installation directory. The installation tree depends on the selected layout.
--prefix=PREFIX
/usr/local/apache2
.--exec-prefix=EPREFIX
By default, make install
will install all the files in
/usr/local/apache2/bin
, /usr/local/apache2/lib
etc. You can specify an installation prefix other than
/usr/local/apache2
using --prefix
,
for instance --prefix=$HOME
.
--enable-layout=LAYOUT
config.layout
file contains several example configurations, and you can also create
your own custom configuration following the examples. The different
layouts in this file are grouped into <Layout
FOO>...</Layout>
sections and referred to by name as
in FOO
. The default layout is Apache
.For better control of the installation directories, use the options
below. Please note that the directory defaults are set by
autoconf
and are overwritten by the corresponding layout
setting.
--bindir=DIR
htpasswd
,
dbmmanage
, etc. which are useful for site
administrators. By default DIR is set to
EPREFIX/bin
.--datadir=DIR
datadir
is set to
PREFIX/share
. This option is offered by
autoconf
and currently unused.--includedir=DIR
includedir
is set to
EPREFIX/include
.--infodir=DIR
infodir
is set to
PREFIX/info
. This option is currently
unused.--libdir=DIR
libdir
is set to
EPREFIX/lib
.--libexecdir=DIR
libexecdir
is set to
EPREFIX/libexec
.--localstatedir=DIR
localstatedir
is set to
PREFIX/var
. This option is offered by
autoconf
and currently unused.--mandir=DIR
mandir
is set to
EPREFIX/man
.--oldincludedir=DIR
oldincludedir
is set to
/usr/include
. This option is offered by
autoconf
and currently unused.--sbindir=DIR
httpd
,
apachectl
, suexec
, etc. which
are neccessary to run the Apache HTTP Server. By default
sbindir
is set to
EPREFIX/sbin
.--sharedstatedir=DIR
sharedstatedir
is set to
PREFIX/com
. This option is offered by
autoconf
and currently unused.--sysconfdir=DIR
httpd.conf
, mime.types
, etc. in
DIR. By default sysconfdir
is set to
PREFIX/etc
.These options are used to cross-compile the Apache HTTP Server to run on another system. In normal cases, when building and running the server on the same system, these options are not used.
--build=BUILD
config.guess
.--host=HOST
--target=TARGET
autoconf
and not necessary for the Apache HTTP
Server.These options are used to fine tune the features your HTTP server will have.
Generally you can use the following syntax to enable or disable a feature:
--disable-FEATURE
--enable-FEATURE=no
.--enable-FEATURE[=ARG]
yes
.--enable-MODULE=shared
--enable-MODULE=static
configure
will not complain about
--enable-foo
even if foo doesn't
exist, so you need to type carefully.
Some modules are compiled by default and have to be disabled explicitly. Use the following options to remove discrete modules from the compilation process.
--disable-actions
mod_actions
.--disable-alias
mod_alias
.--disable-asis
mod_asis
.--disable-auth
mod_auth
. This module provides for HTTP Basic
Authentication, where the usernames and passwords are stored in
plain text files.--disable-autoindex
mod_autoindex
.--disable-access
mod_access
.--disable-cgi
mod_cgi
, which provides support for CGI scripts,
is enabled by default when using a non-threaded MPM. Use this
option to disable CGI support.--disable-cgid
worker
support for CGI scripts is provided by
mod_cgid
by default. To disable CGI support use
this option.--disable-charset-lite
mod_charset_lite
. This module will be installed by
default only on EBCDIC systems.--disable-dir
mod_dir
.--disable-env
mod_env
.--disable-http
http
module is a basic one, enabling the server to function as an
HTTP server. It is only useful to disable it if you want to use
another protocol module instead. Don't disable this
module unless you are really sure what you are doing.
--disable-imagemap
mod_imagemap
.--disable-include
mod_include
.--disable-log-config
mod_log_config
. You won't be able to log requests
to the server without this module.--disable-mime
mod_mime
associates the requested
filename's extensions with the file's behavior and content
(mime-type, language, character set and
encoding). Disabling this module is normally not recommended.--disable-negotiation
mod_negotiation
.--disable-setenvif
mod_setenvif
.--disable-status
mod_status
.--disable-userdir
mod_userdir
.Some modules are compiled by default and have to be enabled
explicitly or by using the keywords most
or
all
(see --enable-mods-shared
below for
further explanation) to be available. Therefore use the options
below.
--enable-auth-anon
mod_auth_anon
.--enable-auth-dbm
mod_auth_dbm
provides for HTTP Basic
Authentication, where the usernames and passwords are stored in DBM
type database files. Use this option to enable the module.--enable-auth-digest
mod_auth_digest
. This module uses plain text files
to store the credentials.--enable-authnz-ldap
mod_authnz_ldap
.--enable-cache
mod_cache
. This experimental module may be
interesting for servers with high load or caching proxy servers. At
least one storage management module (e.g.
mod_disk_cache
or mod_mem_cache
)
is also necessary.--enable-cern-meta
mod_cern_meta
.--enable-charset-lite
mod_charset_lite
. This module will be installed by
default only on EBCDIC systems. On other systems, you have to enable
it.--enable-dav
mod_dav
. Support for filesystem resources is
provided by the separate module mod_dav_fs
. This
module is also automatically enabled with
--enable-dav
.mod_dav
can only be used together with the
http
protocol module.--enable-dav-fs
mod_dav_fs
. This module is a provider for the
mod_dav
module, so you should also use
--enable-dav
.--enable-dav-lock
mod_dav_lock
which provides generic DAV
locking support for backend modules. This module needs at least
mod_dav
to function, so you should also use
--enable-dav
.--enable-deflate
mod_deflate
.--enable-disk-cache
mod_disk_cache
.--enable-expires
mod_expires
.--enable-ext-filter
mod_ext_filter
.--enable-file-cache
mod_file_cache
.--enable-headers
mod_headers
.--enable-info
mod_info
.--enable-ldap
mod_ldap
.--enable-logio
mod_logio
.--enable-mem-cache
mod_mem_cache
.--enable-mime-magic
mod_mime_magic
.--enable-isapi
mod_isapi
.--enable-proxy
mod_proxy
. The proxying capabilities for
AJP13
, CONNECT
, FTP
,
HTTP
and the balancer are provided by the separate
modules mod_proxy_ajp
,
mod_proxy_connect
, mod_proxy_ftp
,
mod_proxy_http
and
mod_proxy_balancer
.
These five modules are also automatically enabled with
--enable-proxy
.--enable-proxy-ajp
AJP13 (Apache JServ Protocol 1.3)
request handling, which is provided by mod_proxy_ajp
.
This module is an extension for the mod_proxy
module,
so you should also use --enable-proxy
.--enable-proxy-balancer
AJP13
,
FTP
and HTTP
protocols, which is provided by
mod_proxy_balancer
. This module is an extension for the
mod_proxy
module, so you should also use
--enable-proxy
.--enable-proxy-connect
CONNECT
request handling,
which is provided by mod_proxy_connect
. This module
is an extension for the mod_proxy
module, so you
should also use --enable-proxy
.--enable-proxy-ftp
FTP
requests, which is
provided by mod_proxy_ftp
. This module
is an extension for the mod_proxy
module, so you
should also use --enable-proxy
.--enable-proxy-http
HTTP
requests, which is
provided by mod_proxy_http
. This module
is an extension for the mod_proxy
module, so you
should also use --enable-proxy
.--enable-rewrite
mod_rewrite
.--enable-so
mod_so
. This
module will be automatically enabled if you use the
--enable-mods-shared
option.--enable-speling
mod_speling
.--enable-ssl
mod_ssl
.--enable-unique-id
mod_unique_id
.--enable-usertrack
mod_usertrack
.--enable-vhost-alias
mod_vhost_alias
.The following modules are useful only for developers and testing purposes and are disabled by default. Use the following options to enable them. If you are not sure whether you need one of these modules, omit them.
--enable-bucketeer
mod_bucketeer
.--enable-case-filter
mod_case_filter
.--enable-case-filter-in
mod_case_filter_in
.--enable-echo
mod_echo