0N/A APACHE INSTALLATION OVERVIEW
0N/A $ ./configure --prefix=PREFIX
0N/A NOTES: * Replace PREFIX with the filesystem path under which
0N/A Apache should be installed. A typical installation
0N/A * Read the section "APR - Unix" below.
0N/A * If you are a developer building Apache directly from
0N/A Subversion, you will need to run ./buildconf before running
0N/A configure. This script bootstraps the build environment and
0N/A requires Python as well as GNU autoconf and libtool. If you
0N/A build Apache from a release tarball, you don't have to run
0N/A * If you want to build a threaded MPM (for instance worker)
0N/A on FreeBSD, be aware that threads do not work well with
0N/A Apache on FreeBSD versions before 5.4-RELEASE. If you wish
0N/A to try a threaded Apache on an earlier version of FreeBSD,
0N/A use the --enable-threads parameter to ./configure in
0N/A addition to the --with-mpm parameter.
0N/A * If you are building directly from Subversion on Mac OS X
0N/A (Darwin), make sure to use GNU Libtool 1.4.2 or newer. All
0N/A recent versions of the developer tools on this platform
0N/A include a sufficiently recent version of GNU Libtool (named
0N/A glibtool, but buildconf knows where to find it).
0N/A For a short impression of what possibilities you have, here is a
0N/A typical example which configures Apache for the installation tree
0N/A additional modules mod_rewrite and mod_speling for later loading
0N/A through the DSO mechanism:
0N/A $ CC="pgcc" CFLAGS="-O2" \
0N/A --enable-rewrite=shared \
0N/A --enable-speling=shared
The easiest way to find all of the configuration flags for Apache 2.5
is to run ./configure --help.
httpd trunk (httpd development version 2.5) can use APR trunk (future
APR version 2.0) or the combination of the current APR
1.x branch and
the current APR-util
1.x branch. (APR trunk bundles the features in
The httpd buildconf step, required when building httpd from Subversion,
must have access to the APR source. The httpd configure step, always
required, can configure the APR source in srclib or use a previously-
APR (and APR-util if using APR
1.x) can be built with httpd from httpd's
srclib directory or can be built separately, prior to building httpd.
Building APR with httpd from httpd's srclib directory is required if
you don't have the compiler which the system APR was built with, and it
can also be advantageous if you are a developer who will be linking your
code with httpd or using a debugger to step through server code, as it
removes the possibility of version or compile-option mismatches with
To use APR trunk in srclib:
Check out APR trunk in
srclib/apr with the following command:
buildconf will find it automatically. Use the --with-included-apr
argument to httpd configure.
To use APR
1.x and APR-util
1.x in srclib:
buildconf will find them automatically. Use the --with-included-apr
argument to httpd configure.
To use existing checkouts of APR (and APR-util if using APR
1.x):
httpd buildconf must have access to the source trees. Use these arguments
--with-apr=[path to apr source] --with-apr-util=[path to apr-util source]
(Omit --with-apr-util if using APR trunk.)
httpd configure must have access to a previously build apr. Use these
arguments to httpd configure:
--with-apr=[path to apr install] --with-apr-util=[path to apr-util install]
(Omit --with-apr-util if using APR trunk.)
The
Apache/Win32 binaries are distributed as Windows Installer packages
mod_ssl plus the openssl library and command line utility. Additional 64 bit
binaries have similarly named -win64-x64 package names. These packages
may be unpacked without "installing" them by using the msiexec /a option.
without any -x86 or -x64 notation) you must compile the package yourself,
see the links mentioned above. Unless you intended to do this, please look
and install that desired .msi package.
The .msi package configures the
httpd.conf file, and installs and starts
the
Apache2.x service for you. It also installs plenty of useful shortcuts
and the taskbar ApacheMonitor. We strongly encourage you to use it.
To obtain help with installation problems, please see the resources at
Thanks for using the Apache HTTP Server, version 2.5.
The Apache Software Foundation