INSTALL revision 750f77ade4110c6b2315d6b9e9c22f643914d87d
750f77ade4110c6b2315d6b9e9c22f643914d87drbb APACHE INSTALLATION
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Introduction
750f77ade4110c6b2315d6b9e9c22f643914d87drbb ============
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Apache 2.0's configuration and installation environment has changed
750f77ade4110c6b2315d6b9e9c22f643914d87drbb completely from Apache 1.3. Apache 1.3 used a custom set of scripts
750f77ade4110c6b2315d6b9e9c22f643914d87drbb to achieve easy installation. Apache 2.0 now uses libtool and autoconf
750f77ade4110c6b2315d6b9e9c22f643914d87drbb to create an environment that looks like many other Open Source projects.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Installing the Apache 1.3 HTTP server with APACI
750f77ade4110c6b2315d6b9e9c22f643914d87drbb ================================================
750f77ade4110c6b2315d6b9e9c22f643914d87drbb 1. Overview for the impatient
750f77ade4110c6b2315d6b9e9c22f643914d87drbb --------------------------
750f77ade4110c6b2315d6b9e9c22f643914d87drbb $ ./buildconf
750f77ade4110c6b2315d6b9e9c22f643914d87drbb $ ./configure --prefix=PREFIX
750f77ade4110c6b2315d6b9e9c22f643914d87drbb $ make install
750f77ade4110c6b2315d6b9e9c22f643914d87drbb NOTE: PREFIX is not the string "PREFIX". Instead use the Unix
750f77ade4110c6b2315d6b9e9c22f643914d87drbb filesystem path under which Apache should be installed. For
750f77ade4110c6b2315d6b9e9c22f643914d87drbb instance use "/usr/local/apache" for PREFIX above.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb 2. Requirements
750f77ade4110c6b2315d6b9e9c22f643914d87drbb ------------
750f77ade4110c6b2315d6b9e9c22f643914d87drbb The following requirements exist for building Apache:
750f77ade4110c6b2315d6b9e9c22f643914d87drbb o Disk Space:
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Make sure you have approximately 12 MB of temporary free disk space
750f77ade4110c6b2315d6b9e9c22f643914d87drbb available. After installation Apache occupies approximately 5 MB of
750f77ade4110c6b2315d6b9e9c22f643914d87drbb disk space (the actual required disk space depends on the amount of
750f77ade4110c6b2315d6b9e9c22f643914d87drbb compiled in third party modules, etc).
750f77ade4110c6b2315d6b9e9c22f643914d87drbb o ANSI-C Compiler:
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Make sure you have an ANSI-C compiler installed. The GNU C compiler
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (GCC) from the Free Software Foundation (FSF) is recommended (version
750f77ade4110c6b2315d6b9e9c22f643914d87drbb 2.7.2 is fine). If you don't have GCC then at least make sure your
750f77ade4110c6b2315d6b9e9c22f643914d87drbb vendors compiler is ANSI compliant. You can find the homepage of GNU
750f77ade4110c6b2315d6b9e9c22f643914d87drbb at http://www.gnu.org/ and the GCC distribution under
750f77ade4110c6b2315d6b9e9c22f643914d87drbb o Libtool 1.3.3:
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Make sure that you have libtool 1.3.3 or later installed before
750f77ade4110c6b2315d6b9e9c22f643914d87drbb trying to configure and build Apache 2.0. Libtool can be downloaded
750f77ade4110c6b2315d6b9e9c22f643914d87drbb from the Free Software Foundation (FSF), at
750f77ade4110c6b2315d6b9e9c22f643914d87drbb o Autoconf 2.13:
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Make sure that you have autoconf 2.13 or later installed before
750f77ade4110c6b2315d6b9e9c22f643914d87drbb trying to configure and build Apache 2.0. Autoconf can be
750f77ade4110c6b2315d6b9e9c22f643914d87drbb downloaded from the Free Software Foundation (FSF), at
750f77ade4110c6b2315d6b9e9c22f643914d87drbb o Perl 5 Interpreter [OPTIONAL]:
750f77ade4110c6b2315d6b9e9c22f643914d87drbb For some of the support scripts like `apxs' or `dbmmanage' (which are
750f77ade4110c6b2315d6b9e9c22f643914d87drbb written in Perl) the Perl 5 interpreter is required (versions 5.003
750f77ade4110c6b2315d6b9e9c22f643914d87drbb and 5.004 are fine). If no such interpreter is found by APACI's
750f77ade4110c6b2315d6b9e9c22f643914d87drbb `configure' script this is no harm. Of course, you still can build
750f77ade4110c6b2315d6b9e9c22f643914d87drbb and install Apache 1.3. Only those support scripts cannot be used. If
750f77ade4110c6b2315d6b9e9c22f643914d87drbb you have multiple Perl interpreters installed (perhaps a Perl 4 from
750f77ade4110c6b2315d6b9e9c22f643914d87drbb the vendor and a Perl 5 from your own), then it is recommended to use
750f77ade4110c6b2315d6b9e9c22f643914d87drbb the --with-perl option (see below) to make sure the correct one is
750f77ade4110c6b2315d6b9e9c22f643914d87drbb selected by APACI.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb o Dynamic Shared Object (DSO) support [OPTIONAL]:
750f77ade4110c6b2315d6b9e9c22f643914d87drbb To provide maximum flexibility Apache now is able to load modules
750f77ade4110c6b2315d6b9e9c22f643914d87drbb under runtime via the DSO mechanism by using the pragmatic
750f77ade4110c6b2315d6b9e9c22f643914d87drbb dlopen()/dlsym() system calls. These system calls are not available
750f77ade4110c6b2315d6b9e9c22f643914d87drbb under all operating systems therefore you cannot use the DSO mechanism
750f77ade4110c6b2315d6b9e9c22f643914d87drbb on all platforms. And Apache currently has only limited built-in
750f77ade4110c6b2315d6b9e9c22f643914d87drbb knowledge on how to compile shared objects because this is heavily
750f77ade4110c6b2315d6b9e9c22f643914d87drbb platform-dependent. The current state is this:
750f77ade4110c6b2315d6b9e9c22f643914d87drbb o Out-of-the-box supported platforms are (Not all of these will
750f77ade4110c6b2315d6b9e9c22f643914d87drbb work currently. DSO support is currently available on most
750f77ade4110c6b2315d6b9e9c22f643914d87drbb of these platforms however):
750f77ade4110c6b2315d6b9e9c22f643914d87drbb - Linux - SunOS - UnixWare - Darwin/Mac OS
750f77ade4110c6b2315d6b9e9c22f643914d87drbb - FreeBSD - Solaris - AIX - OpenStep/Mach
750f77ade4110c6b2315d6b9e9c22f643914d87drbb - OpenBSD - IRIX - SCO - DYNIX/ptx
750f77ade4110c6b2315d6b9e9c22f643914d87drbb - NetBSD - HPUX - ReliantUNIX
750f77ade4110c6b2315d6b9e9c22f643914d87drbb - BSDI - Digital Unix - DGUX
750f77ade4110c6b2315d6b9e9c22f643914d87drbb o Entirely unsupported platforms are:
750f77ade4110c6b2315d6b9e9c22f643914d87drbb If your system is not on these lists but has the dlopen-style
750f77ade4110c6b2315d6b9e9c22f643914d87drbb interface, you either have to provide the appropriate compiler and
750f77ade4110c6b2315d6b9e9c22f643914d87drbb linker flags (see CFLAGS_SHLIB, LDFLAGS_SHLIB and LDFLAGS_SHLIB_EXPORT
750f77ade4110c6b2315d6b9e9c22f643914d87drbb below) manually or at least make sure a Perl 5 interpreter is
750f77ade4110c6b2315d6b9e9c22f643914d87drbb installed from which Apache can guess the options.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb 3. Configuring the source tree
750f77ade4110c6b2315d6b9e9c22f643914d87drbb ---------------------------
750f77ade4110c6b2315d6b9e9c22f643914d87drbb The first step in compiling Apache 2.0 is to setup the source tree so
750f77ade4110c6b2315d6b9e9c22f643914d87drbb that it can be built. This is done by running:
750f77ade4110c6b2315d6b9e9c22f643914d87drbb ./buildconf
750f77ade4110c6b2315d6b9e9c22f643914d87drbb This script ensures that all required programs are installed on the
750f77ade4110c6b2315d6b9e9c22f643914d87drbb currently machine, and creates the ./configure script. If you are
750f77ade4110c6b2315d6b9e9c22f643914d87drbb using a package downloaded from apache.org then this step is not
750f77ade4110c6b2315d6b9e9c22f643914d87drbb necessary.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Introduction:
750f77ade4110c6b2315d6b9e9c22f643914d87drbb The next step is to configure the Apache source tree for your particular
750f77ade4110c6b2315d6b9e9c22f643914d87drbb platform and personal requirements. The most important setup here is the
750f77ade4110c6b2315d6b9e9c22f643914d87drbb location prefix where Apache is to be installed later, because Apache has
750f77ade4110c6b2315d6b9e9c22f643914d87drbb to be configured for this location to work correctly. But there are a lot
750f77ade4110c6b2315d6b9e9c22f643914d87drbb of other options available for your pleasure.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb For a short impression of what possibilities you have, here is a typical
750f77ade4110c6b2315d6b9e9c22f643914d87drbb example which compiles Apache for the installation tree /sw/pkg/apache
750f77ade4110c6b2315d6b9e9c22f643914d87drbb with a particular compiler and flags plus the two additional modules
750f77ade4110c6b2315d6b9e9c22f643914d87drbb mod_rewrite and mod_speling for later loading through the DSO mechanism:
750f77ade4110c6b2315d6b9e9c22f643914d87drbb $ CC="pgcc" OPTIM="-O2" \
750f77ade4110c6b2315d6b9e9c22f643914d87drbb ./configure --prefix=/sw/pkg/apache \
750f77ade4110c6b2315d6b9e9c22f643914d87drbb --enable-rewrite=shared \
750f77ade4110c6b2315d6b9e9c22f643914d87drbb --enable-speling=shared
750f77ade4110c6b2315d6b9e9c22f643914d87drbb The easiest way to find all of the configuration flags for Apache 2.0
750f77ade4110c6b2315d6b9e9c22f643914d87drbb is to run ./configure --help. What follows is a brief description of
750f77ade4110c6b2315d6b9e9c22f643914d87drbb most of the arguments.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Reference:
750f77ade4110c6b2315d6b9e9c22f643914d87drbb $ [CC=...] [CFLAGS_SHLIB=...] [TARGET=...]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [OPTIM=...] [LD_SHLIB=...]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [CFLAGS=...] [LDFLAGS_SHLIB=...]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [INCLUDES=...] [LDFLAGS_SHLIB_EXPORT=...]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [LDFLAGS=...] [RANLIB=...]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [LIBS=...] [DEPS=...]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb ./configure
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--quiet] [--prefix=DIR] [--enable-NAME=(shared)]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--verbose] [--exec-prefix=PREFIX] [--disable-NAME]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--shadow[=DIR]] [--bindir=EPREFIX] [--with-mpm=NAME]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--show-layout] [--sbindir=DIR]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--help] [--libexecdir=DIR]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--mandir=DIR]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--sysconfdir=DIR]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--datadir=DIR]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--includedir=DIR]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--localstatedir=DIR]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--runtimedir=DIR] [--enable-suexec]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--logfiledir=DIR] [--suexec-caller=UID]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--proxycachedir=DIR] [--suexec-docroot=DIR]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--with-layout=[FILE:]ID] [--suexec-logfile=FILE]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--suexec-userdir=DIR]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--with-perl=FILE] [--suexec-uidmin=UID]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--without-support] [--suexec-gidmin=GID]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--without-confadjust] [--suexec-safepath=PATH]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--without-execstrip]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--server-uid=UID] [--with-maintainter-mode]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb [--server-gid=GID]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Use the CC, OPTIM, CFLAGS, INCLUDES, LDFLAGS, LIBS, CFLAGS_SHLIB,
750f77ade4110c6b2315d6b9e9c22f643914d87drbb LD_SHLIB, LDFLAGS_SHLIB, LDFLAGS_SHLIB_EXPORT, RANLIB, DEPS and TARGET
750f77ade4110c6b2315d6b9e9c22f643914d87drbb environment variables to override the corresponding default entries in
750f77ade4110c6b2315d6b9e9c22f643914d87drbb the src/Configuration.tmpl file (see there for more information about
750f77ade4110c6b2315d6b9e9c22f643914d87drbb their usage).
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Use the --prefix=PREFIX and --exec-prefix=EPREFIX options to configure
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Apache to use a particular installation prefix. The default is
750f77ade4110c6b2315d6b9e9c22f643914d87drbb PREFIX=/usr/local/apache and EPREFIX=PREFIX.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Use the --bindir=DIR, --sbindir=DIR, --libexecdir=DIR, --mandir=DIR,
750f77ade4110c6b2315d6b9e9c22f643914d87drbb --sysconfdir=DIR, --datadir=DIR, --includedir=DIR, --localstatedir=DIR,
750f77ade4110c6b2315d6b9e9c22f643914d87drbb --runtimedir=DIR, --logfiledir=DIR and proxycachedir=DIR option to change
750f77ade4110c6b2315d6b9e9c22f643914d87drbb the paths for particular subdirectories of the installation tree.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb libexecdir=EPREFIX/libexec, mandir=PREFIX/man, sysconfdir=PREFIX/etc,
750f77ade4110c6b2315d6b9e9c22f643914d87drbb logfiledir=PREFIX/var/log and proxycachedir=PREFIX/var/proxy.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Note: To reduce the pollution of shared installation locations
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (like /usr/local/ or /etc) with Apache files to a minimum the
750f77ade4110c6b2315d6b9e9c22f643914d87drbb string ``/apache'' is automatically appended to 'libexecdir',
750f77ade4110c6b2315d6b9e9c22f643914d87drbb 'sysconfdir', 'datadir', 'localstatedir' and 'includedir' if
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (and only if) the following points apply for each path
750f77ade4110c6b2315d6b9e9c22f643914d87drbb individually:
750f77ade4110c6b2315d6b9e9c22f643914d87drbb 1. the path doesn't already contain the word ``apache''
750f77ade4110c6b2315d6b9e9c22f643914d87drbb 2. the path was not directly customized by the user
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Keep in mind that per default these paths are derived from
750f77ade4110c6b2315d6b9e9c22f643914d87drbb 'prefix' and 'exec-prefix', so usually its only a matter
750f77ade4110c6b2315d6b9e9c22f643914d87drbb whether these paths contain ``apache'' or not. Although the
750f77ade4110c6b2315d6b9e9c22f643914d87drbb defaults were defined with experience in mind you always should
750f77ade4110c6b2315d6b9e9c22f643914d87drbb make sure the paths fit your situation by checking the finally
750f77ade4110c6b2315d6b9e9c22f643914d87drbb chosen paths via the --layout option.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Use the --with-layout=[F:]ID option to select a particular installation
750f77ade4110c6b2315d6b9e9c22f643914d87drbb path base-layout. You always _HAVE_ to select a base-layout. There are
750f77ade4110c6b2315d6b9e9c22f643914d87drbb currently two layouts pre-defined in the file config.layout: `Apache' for
750f77ade4110c6b2315d6b9e9c22f643914d87drbb the classical Apache path layout and `GNU' for a path layout conforming
750f77ade4110c6b2315d6b9e9c22f643914d87drbb to the GNU `standards' document. When you want to use your own custom
750f77ade4110c6b2315d6b9e9c22f643914d87drbb layout FOO, either add a corresponding "<Layout FOO>...</Layout>" section
750f77ade4110c6b2315d6b9e9c22f643914d87drbb to config.layout and use --with-layout=FOO or place it into your own
750f77ade4110c6b2315d6b9e9c22f643914d87drbb file, say config.mypaths, and use --with-layout=config.mypaths:FOO.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Use the --show-layout option to check the final installation path layout
750f77ade4110c6b2315d6b9e9c22f643914d87drbb while fiddling with the options above.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Use the --enable-rule=NAME and --disable-rule=NAME options to enable or
750f77ade4110c6b2315d6b9e9c22f643914d87drbb disable a particular Rule from the Apache src/Configuration.tmpl file. The
750f77ade4110c6b2315d6b9e9c22f643914d87drbb defaults (yes=enabled, no=disabled) can either be seen when running
750f77ade4110c6b2315d6b9e9c22f643914d87drbb `./configure --help' or manually looked up in the src/Configuration.tmpl
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Use the --enable-NAME=(shared) and --disable-NAME options to enable
750f77ade4110c6b2315d6b9e9c22f643914d87drbb or disable a particular already distributed module from the Apache
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Use the --with-mpm=NAME option to determine which MPM should be built
750f77ade4110c6b2315d6b9e9c22f643914d87drbb for your server.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb _________________________________________________________________________
750f77ade4110c6b2315d6b9e9c22f643914d87drbb LIST OF AVAILABLE MODULES
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Environment creation
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (+) mod_env .......... Set environment variables for CGI/SSI scripts
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (+) mod_setenvif ..... Set environment variables based on HTTP headers
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) mod_unique_id .... Generate unique identifiers for request
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Content type decisions
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (+) mod_mime ......... Content type/encoding determination (configured)
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) mod_mime_magic ... Content type/encoding determination (automatic)
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (+) mod_negotiation .. Content selection based on the HTTP Accept* headers
750f77ade4110c6b2315d6b9e9c22f643914d87drbb URL mapping
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (+) mod_alias ........ Simple URL translation and redirection
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) mod_rewrite ...... Advanced URL translation and redirection
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (+) mod_userdir ...... Selection of resource directories by username
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) mod_speling ...... Correction of misspelled URLs
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Directory Handling
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (+) mod_dir .......... Directory and directory default file handling
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (+) mod_autoindex .... Automated directory index file generation
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Access Control
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (+) mod_access ....... Access Control (user, host, network)
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (+) mod_auth ......... HTTP Basic Authentication (user, passwd)
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) mod_auth_dbm ..... HTTP Basic Authentication via Unix NDBM files
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) mod_auth_db ...... HTTP Basic Authentication via Berkeley-DB files
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) mod_auth_anon .... HTTP Basic Authentication for Anonymous-style users
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) mod_digest ....... HTTP Digest Authentication
750f77ade4110c6b2315d6b9e9c22f643914d87drbb HTTP response
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) mod_headers ...... Arbitrary HTTP response headers (configured)
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) mod_cern_meta .... Arbitrary HTTP response headers (CERN-style files)
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) mod_expires ...... Expires HTTP responses
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (+) mod_asis ......... Raw HTTP responses
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (+) mod_include ...... Server Side Includes (SSI) support
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (+) mod_cgi .......... Common Gateway Interface (CGI) support
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (+) mod_cgid ......... Common Gateway Interface (CGI) support for
750f77ade4110c6b2315d6b9e9c22f643914d87drbb multi-threaded MPMs
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (+) mod_actions ...... Map CGI scripts to act as internal `handlers'
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Internal Content Handlers
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (+) mod_status ....... Content handler for server run-time status
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) mod_info ......... Content handler for server configuration summary
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Request Logging
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (+) mod_log_config ... Customizable logging of requests
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) mod_log_agent .... Specialized HTTP User-Agent logging (deprecated)
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) mod_log_referer .. Specialized HTTP Referrer logging (deprecated)
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) mod_usertrack .... Logging of user click-trails via HTTP Cookies
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Miscellaneous
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (+) mod_imap ......... Server-side Image Map support
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) mod_proxy ........ Caching Proxy Module (HTTP, HTTPS, FTP)
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) mod_so ........... Dynamic Shared Object (DSO) bootstrapping
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Experimental
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) mod_mmap_static .. Caching of frequently served pages via mmap()
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Development
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) mod_example ...... Apache API demonstration (developers only)
750f77ade4110c6b2315d6b9e9c22f643914d87drbb mpmt_pthread ..... Mutli-process(dynamic) Multi-threaded(static)
750f77ade4110c6b2315d6b9e9c22f643914d87drbb prefork .......... Preforking Unix MPM
750f77ade4110c6b2315d6b9e9c22f643914d87drbb dexter ........... Multi-process(static) Multi-threaded(dynamic)
750f77ade4110c6b2315d6b9e9c22f643914d87drbb perchild ......... Multi-process(static) Multi-threaded(dynamic)
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Unix MPM, that allows a User per child process
750f77ade4110c6b2315d6b9e9c22f643914d87drbb winnt ............ Multi-process(1) Multi-threaded Windows MPM
750f77ade4110c6b2315d6b9e9c22f643914d87drbb mpmt_beos ........ Multi-process Multi-threaded Beos MPM
750f77ade4110c6b2315d6b9e9c22f643914d87drbb beos ............. Multi-process Multi-threaded Beos MPM
750f77ade4110c6b2315d6b9e9c22f643914d87drbb spmt_os2 ......... Single-process Multi-threaded OS/2 MPM
750f77ade4110c6b2315d6b9e9c22f643914d87drbb _________________________________________________________________________
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (+) = enabled per default [disable with --disable-module]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (-) = disabled per default [enable with --enable-module ]
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Use the --enable-suexec option to enable the suEXEC feature by building
750f77ade4110c6b2315d6b9e9c22f643914d87drbb and installing the "suexec" support program. Use --suexec-caller=UID to
750f77ade4110c6b2315d6b9e9c22f643914d87drbb set the allowed caller user id, --suexec-userdir=DIR to set the user
750f77ade4110c6b2315d6b9e9c22f643914d87drbb subdirectory, --suexec-docroot=DIR to set the suexec root directory,
750f77ade4110c6b2315d6b9e9c22f643914d87drbb --suexec-uidmin=UID/--suexec-gidmin=GID to set the minimal allowed
750f77ade4110c6b2315d6b9e9c22f643914d87drbb UID/GID, --suexec-logfile=FILE to set the logfile and
750f77ade4110c6b2315d6b9e9c22f643914d87drbb --suexec-safepath=PATH to set the safe shell PATH for the suEXEC
750f77ade4110c6b2315d6b9e9c22f643914d87drbb feature. At least one --suexec-xxxxx option has to be provided together
750f77ade4110c6b2315d6b9e9c22f643914d87drbb with the --enable-suexec option to let APACI accept your request for
750f77ade4110c6b2315d6b9e9c22f643914d87drbb using the suEXEC feature.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb CAUTION: FOR DETAILS ABOUT THE SUEXEC FEATURE WE HIGHLY RECOMMEND YOU TO
750f77ade4110c6b2315d6b9e9c22f643914d87drbb FIRST READ THE DOCUMENT htdocs/manual/suexec.html BEFORE USING
750f77ade4110c6b2315d6b9e9c22f643914d87drbb THE ABOVE OPTIONS.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb USING THE SUEXEC FEATURE PROPERLY CAN REDUCE CONSIDERABLY THE
750f77ade4110c6b2315d6b9e9c22f643914d87drbb SECURITY RISKS INVOLVED WITH ALLOWING USERS TO DEVELOP AND RUN
750f77ade4110c6b2315d6b9e9c22f643914d87drbb PRIVATE CGI OR SSI PROGRAMS. HOWEVER, IF SUEXEC IS IMPROPERLY
750f77ade4110c6b2315d6b9e9c22f643914d87drbb CONFIGURED, IT CAN CAUSE ANY NUMBER OF PROBLEMS AND POSSIBLY
750f77ade4110c6b2315d6b9e9c22f643914d87drbb CREATE NEW HOLES IN YOUR COMPUTER'S SECURITY. IF YOU AREN'T
750f77ade4110c6b2315d6b9e9c22f643914d87drbb FAMILIAR WITH MANAGING SETUID ROOT PROGRAMS AND THE SECURITY
750f77ade4110c6b2315d6b9e9c22f643914d87drbb ISSUES THEY PRESENT, WE HIGHLY RECOMMEND THAT YOU NOT CONSIDER
750f77ade4110c6b2315d6b9e9c22f643914d87drbb USING SUEXEC AND KEEP AWAY FROM THESE OPTIONS!
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Use the --shadow option to let APACI create a shadow source tree of the
750f77ade4110c6b2315d6b9e9c22f643914d87drbb sources for building. This is useful when you want to build for different
750f77ade4110c6b2315d6b9e9c22f643914d87drbb platforms in parallel (usually through a NFS, AFS or DFS mounted
750f77ade4110c6b2315d6b9e9c22f643914d87drbb filesystem). You may specify a directory to the --shadow option into
750f77ade4110c6b2315d6b9e9c22f643914d87drbb which the shadow tree will be created.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Use the --quiet option to disable all configuration verbose messages.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Use the --verbose option to enable additional verbose messages.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Use the --server-uid option to specify the user ID you want the server to run
750f77ade4110c6b2315d6b9e9c22f643914d87drbb as. If not specified the server will run as user nobody. If the user ID
750f77ade4110c6b2315d6b9e9c22f643914d87drbb specified is different than the ID of the user starting the server, you need to
750f77ade4110c6b2315d6b9e9c22f643914d87drbb start the server as root.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Use the --server-gid option to specify the group ID you want the server user ID to
750f77ade4110c6b2315d6b9e9c22f643914d87drbb be a member of. If not specified, the group ID will be #-1.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb 4. Building the package
750f77ade4110c6b2315d6b9e9c22f643914d87drbb --------------------
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Now you can build the various parts which form the Apache package by
750f77ade4110c6b2315d6b9e9c22f643914d87drbb simply running the command
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Please be patient here, this takes approximately 2 minutes to complete
750f77ade4110c6b2315d6b9e9c22f643914d87drbb under a Pentium-166/FreeBSD-2.2 system, dependend on the amount of
750f77ade4110c6b2315d6b9e9c22f643914d87drbb modules you have enabled.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb 5. Installing the package
750f77ade4110c6b2315d6b9e9c22f643914d87drbb ----------------------
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Now its time to install the package under the configured installation
750f77ade4110c6b2315d6b9e9c22f643914d87drbb PREFIX (see --prefix option above) by running:
750f77ade4110c6b2315d6b9e9c22f643914d87drbb $ make install
750f77ade4110c6b2315d6b9e9c22f643914d87drbb For the paranoid hackers under us: The above command really installs under
750f77ade4110c6b2315d6b9e9c22f643914d87drbb prefix _only_, i.e. no other stuff from your system is touched. Even if
750f77ade4110c6b2315d6b9e9c22f643914d87drbb you upgrade an existing installation your configuration files in
750f77ade4110c6b2315d6b9e9c22f643914d87drbb PREFIX/etc/ are preserved.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb 6. Testing the package
750f77ade4110c6b2315d6b9e9c22f643914d87drbb -------------------
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Now you can fire up your Apache HTTP server by immediately running
750f77ade4110c6b2315d6b9e9c22f643914d87drbb and then you should be able to request your first document via URL
750f77ade4110c6b2315d6b9e9c22f643914d87drbb http://localhost/ (when you built and installed Apache as root or at
750f77ade4110c6b2315d6b9e9c22f643914d87drbb least used the --without-confadjust option) or http://localhost:8080/
750f77ade4110c6b2315d6b9e9c22f643914d87drbb (when you built and installed Apache as a regular user). Then stop the
750f77ade4110c6b2315d6b9e9c22f643914d87drbb server again by running:
750f77ade4110c6b2315d6b9e9c22f643914d87drbb 7. Customizing the package
750f77ade4110c6b2315d6b9e9c22f643914d87drbb -----------------------
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Finally you can customize your Apache HTTP server by editing the
750f77ade4110c6b2315d6b9e9c22f643914d87drbb configuration files under PREFIX/etc/.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Have a look at the Apache manual under htdocs/manual/ or
750f77ade4110c6b2315d6b9e9c22f643914d87drbb http://www.apache.org/docs/ for a complete reference of available
750f77ade4110c6b2315d6b9e9c22f643914d87drbb configuration directives.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb 8. Preparing the system
750f77ade4110c6b2315d6b9e9c22f643914d87drbb --------------------
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Proper operation of a public HTTP server requires at least the following:
750f77ade4110c6b2315d6b9e9c22f643914d87drbb 1. A correctly working TCP/IP layer, since HTTP is implemented on top of
750f77ade4110c6b2315d6b9e9c22f643914d87drbb TCP/IP. Although modern Unix platforms have good networking layers,
750f77ade4110c6b2315d6b9e9c22f643914d87drbb always make sure you have all official vendor patches referring to the
750f77ade4110c6b2315d6b9e9c22f643914d87drbb network layer applied.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb 2. Accurate time keeping, since elements of the HTTP protocol are
750f77ade4110c6b2315d6b9e9c22f643914d87drbb expressed as the time of day. So, it's time to investigate setting
750f77ade4110c6b2315d6b9e9c22f643914d87drbb some time synchronization facility on your system. Usually the ntpdate
750f77ade4110c6b2315d6b9e9c22f643914d87drbb or xntpd programs are used for this purpose which are based on the
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Network Time Protocol (NTP). See the Usenet newsgroup
750f77ade4110c6b2315d6b9e9c22f643914d87drbb comp.protocols.time.ntp and the NTP homepage at
750f77ade4110c6b2315d6b9e9c22f643914d87drbb http://www.eecis.udel.edu/~ntp/ for more details about NTP software
750f77ade4110c6b2315d6b9e9c22f643914d87drbb and public time servers.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb 9. Contacts
750f77ade4110c6b2315d6b9e9c22f643914d87drbb o If you want to be informed about new code releases, bug fixes,
750f77ade4110c6b2315d6b9e9c22f643914d87drbb security fixes, general news and information about the Apache server
750f77ade4110c6b2315d6b9e9c22f643914d87drbb subscribe to the apache-announce mailing list as described under
750f77ade4110c6b2315d6b9e9c22f643914d87drbb o If you want freely available support for running Apache please join the
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Apache user community by subscribing at least to the following USENET
750f77ade4110c6b2315d6b9e9c22f643914d87drbb newsgroup:
750f77ade4110c6b2315d6b9e9c22f643914d87drbb o If you want commercial support for running Apache please contact
750f77ade4110c6b2315d6b9e9c22f643914d87drbb one of the companies and contractors which are listed at
750f77ade4110c6b2315d6b9e9c22f643914d87drbb o If you have a concrete bug report for Apache please go to the
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Apache Group Bug Database and submit your report:
750f77ade4110c6b2315d6b9e9c22f643914d87drbb o If you want to participate in actively developing Apache please
750f77ade4110c6b2315d6b9e9c22f643914d87drbb subscribe to the `new-httpd' mailing list as described at
750f77ade4110c6b2315d6b9e9c22f643914d87drbb Thanks for running Apache.
750f77ade4110c6b2315d6b9e9c22f643914d87drbb The Apache Group