• Aucun résultat trouvé

The Options for the Configure Script

Dans le document Apache Server2 Apache Server2 (Page 51-55)

Option Meaning

--cache-file=file Cache test results in file

--help Print this message

--no-create Do not create output files --quiet or --silent Do not print ‘checking...’ messages --version Print the version of autoconfthat created

configure Directory and filenames:

--prefix=prefix Install architecture-independent files in prefix [/usr/local/apache2]

--exec-prefix=eprefix Install architecture-dependent files in eprefix [same as prefix]

--bindir=dir User executables in dir [EPREFIX/bin]

--sbindir=dir System admin executables in dir [EPREFIX/sbin]

--libexecdir=dir Program executables in dir [eprefix/libexec]

--datadir=dir Read-only architecture-independent data in dir[prefix/share]

--sysconfdir=dir Read-only single-machine data in dir [prefix/etc]

--sharedstatedir=dir Modifiable architecture-independent data in dir [prefix/com]

--localstatedir=dir Modifiable single-machine data in dir[prefix/var]

--libdir=dir Object code libraries in dir[eprefix/lib]

--includedir=dir C header files in dir[prefix/include]

--oldincludedir=dir C header files for non-GCC in dir [/usr/include]

--infodir=dir Info documentation in dir[prefix/info]

--mandir=dir man documentation in dir[prefix/man]

--srcdir=dir Find the sources in dir[configure dir or ...]

--program-prefix=prefix Prepend prefix to installed program names

Option Meaning

--program-suffix=suffix Append suffix to installed program names --program-transform-name=program Run sed (stream editor) program on installed

program names

--build=build Configure for building on build

--host=host Configure for host

--target=target Configure for TARGET [TARGET=HOST]

--disable-feature Do not include FEATURE (same as –enable-FEATURE=no)

--enable- feature[=arg] Include feature [arg=yes]

--with-package[=arg] Use package[arg=yes]

--without-package Do not use package(same as –with-package=no)

--x-includes=dir X include files are in dir --x-libraries=dir X library files are in dir

--with-optim=flag Obsolete (use OPTIM environment variable) --with-port=port Port on which to listen (default is 80) --enable-debug Turn on debugging and compile-time

warnings

--enable-maintainer-mode Turn on debugging and compile-time warnings

--enable-layout=layout Enable a directory layout

--enable-modules=module-list Enable one or more named modules --enable-mods-shared=module-list Enable one or more named modules as

shared modules

--disable-access Disable host-based access control --disable-auth Disable user-based access control --enable-auth-anon Enable anonymous user access --enable-auth-dbm Enable DBM-based access databases --enable-auth-db Enable DB-based access databases --enable-auth-digest Enable RFC2617 Digest authentication --enable-file-cache Enable file cache

Continued

Table 2-2 (continued)

Option Meaning

--enable-dav-fs Enable DAV provider for the filesystem --enable-dav Enable WebDAV protocol handling

--enable-echo Enable ECHO server

--enable-charset-lite Enable character set translation --enable-cache Enable dynamic file caching --enable-disk-cache Enable disk caching module --enable-ext-filter Enable external filter module

--enable-case-filter Enable example uppercase conversion filter --enable-generic-hook-export Enable example of hook exporter

--enable-generic-hook-import Enable example of hook importer

--enable-optional-fn-import Enable example of optional function importer --enable-optional-fn-export Enable example of optional function exporter --disable-include Disable Server-Side Includes

--disable-http Disable HTTP protocol handling

--disable-mime Disable mapping of file-extension to MIME --disable-log-config Disable logging configuration

--enable-vhost-alias Enable mass -hosting module --disable-negotiation Disable content negotiation --disable-dir Disable directory request handling --disable-imap Disable internal imagemaps --disable-actions Disable action triggering on requests --enable-speling Enable correct common URL misspellings --disable-userdir Disable mapping of user requests --disable-alias Disable translation of requests --enable-rewrite Enable URL rewriting rules

--disable-so Disable DSO capability

--enable-so Enable DSO capability

--disable-env Clearing/setting of ENV vars --enable-mime-magic Automatically determine MIME type --enable-cern-meta Enable CERN-type meta files --enable-expires Enable Expires header control

Option Meaning

--enable-headers Enable HTTP header control --enable-usertrack Enable user-session tracking --enable-unique-id Enable per-request unique IDs --disable-setenvif Disable base ENV vars on headers

--enable-tls Enable TLS/SSL support

--with-ssl Use a specific SSL library installation --with-mpm=MPM Choose the process model for Apache to

use: MPM={beos threaded prefork spmt_os2 perchild}

--disable-status Process/thread monitoring --disable-autoindex Disable Directory listing --disable-asis Disable As-is filetypes --enable-info Enable Server information

--enable-suexec Set UID and GID for spawned processes --disable-cgid Disable CGI daemon support

--enable-cgid Enable CGI daemon support --disable-cgi Disable CGI scripts support --enable-cgid Enable CGI scripts support --enable-shared[=pkgs] Build shared libraries [default=no]

--enable-static[=pkgs] Build static libraries [default=yes]

--enable-fast-install[=pkgs] Optimize for fast installation [default=yes]

--with-gnu-ld Assume the C compiler uses GNU lD [default=no]

--disable-libtool-lock Avoid locking (might break parallel builds) --with-program-name Alternate executable name

--with-suexec-caller User allowed to call SuExec --with-suexec-userdir User subdirectory

--with-suexec-docroot SuExecroot directory --with-suexec-uidmin Minimal allowed UID --with-suexec-gidmin Minimal allowed GID --with-suexec-logfile Set the logfile --with-suexec-safepath Set the safepath --with-suexec-umask Amask for process

Most of these options are not required for most sites. Typically, all you need is to specify the --prefixoption and any options to enable or disable one or more modules. For example, say you do not want to install the CGI module on your system. You can run the configurescript using the --disable-cgi --disable-cgidoptions to disable CGI support. Similarly, to disable the Server-Side Include (SSI) support you can use the --disable-includeoption.

After you have configured Apache using the configurescript, you can use the config.statusscript instead of configurefor any subsequent configuration needs. By using the config.statusscript, you can reuse your previous configura-tion and add or subtract new opconfigura-tions. For example, say you configured Apache with the following command line:

./configure --prefix=/usr/local/apache --disable-cgi --disable-cgid

and a few days later decided to disable SSI. You can now use:

./config.status --disable-include

When you recompile Apache, the CGI modules will still not be included, because ./config.statusstores the options that you specified using the configurescript earlier.

If you wish to start fresh, use configureevery time.

Advanced configuration options for

Dans le document Apache Server2 Apache Server2 (Page 51-55)