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