|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
APACHE INSTALLATION OVERVIEW
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
Quick Start - Unix
|
|
Packit |
90a5c9 |
------------------
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
For complete installation documentation, see [ht]docs/manual/install.html or
|
|
Packit |
90a5c9 |
http://httpd.apache.org/docs/2.4/install.html
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
$ ./configure --prefix=PREFIX
|
|
Packit |
90a5c9 |
$ make
|
|
Packit |
90a5c9 |
$ make install
|
|
Packit |
90a5c9 |
$ PREFIX/bin/apachectl start
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
NOTES: * Replace PREFIX with the filesystem path under which
|
|
Packit |
90a5c9 |
Apache should be installed. A typical installation
|
|
Packit |
90a5c9 |
might use "/usr/local/apache2" for PREFIX (without the
|
|
Packit |
90a5c9 |
quotes).
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
* Consider if you want to use a previously installed APR and
|
|
Packit |
90a5c9 |
APR-Util (such as those provided with many OSes) or if you
|
|
Packit |
90a5c9 |
need to use the APR and APR-Util from the apr.apache.org
|
|
Packit |
90a5c9 |
project. If the latter, download the latest versions and
|
|
Packit |
90a5c9 |
unpack them to ./srclib/apr and ./srclib/apr-util (no
|
|
Packit |
90a5c9 |
version numbers in the directory names) and use
|
|
Packit |
90a5c9 |
./configure's --with-included-apr option. This is required
|
|
Packit |
90a5c9 |
if you don't have the compiler which the system APR was
|
|
Packit |
90a5c9 |
built with. It can also be advantageous if you are a
|
|
Packit |
90a5c9 |
developer who will be linking your code with Apache or using
|
|
Packit |
90a5c9 |
a debugger to step through server code, as it removes the
|
|
Packit |
90a5c9 |
possibility of version or compile-option mismatches with APR
|
|
Packit |
90a5c9 |
and APR-Util code. As a convenience, prepackaged source-code
|
|
Packit |
90a5c9 |
bundles of APR and APR-Util are occasionally also provided
|
|
Packit |
90a5c9 |
as a httpd-2.X.X-deps.tar.gz download.
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
* If you are a developer building Apache directly from
|
|
Packit |
90a5c9 |
Subversion, you will need to run ./buildconf before running
|
|
Packit |
90a5c9 |
configure. This script bootstraps the build environment and
|
|
Packit |
90a5c9 |
requires Python as well as GNU autoconf and libtool. If you
|
|
Packit |
90a5c9 |
build Apache from a release tarball, you don't have to run
|
|
Packit |
90a5c9 |
buildconf.
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
* If you want to build a threaded MPM (for instance worker)
|
|
Packit |
90a5c9 |
on FreeBSD, be aware that threads do not work well with
|
|
Packit |
90a5c9 |
Apache on FreeBSD versions before 5.4-RELEASE. If you wish
|
|
Packit |
90a5c9 |
to try a threaded Apache on an earlier version of FreeBSD,
|
|
Packit |
90a5c9 |
use the --enable-threads parameter to ./configure in
|
|
Packit |
90a5c9 |
addition to the --with-mpm parameter.
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
* If you are building directly from Subversion on Mac OS X
|
|
Packit |
90a5c9 |
(Darwin), make sure to use GNU Libtool 1.4.2 or newer. All
|
|
Packit |
90a5c9 |
recent versions of the developer tools on this platform
|
|
Packit |
90a5c9 |
include a sufficiently recent version of GNU Libtool (named
|
|
Packit |
90a5c9 |
glibtool, but buildconf knows where to find it).
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
For a short impression of what possibilities you have, here is a
|
|
Packit |
90a5c9 |
typical example which configures Apache for the installation tree
|
|
Packit |
90a5c9 |
/sw/pkg/apache with a particular compiler and flags plus the two
|
|
Packit |
90a5c9 |
additional modules mod_rewrite and mod_speling for later loading
|
|
Packit |
90a5c9 |
through the DSO mechanism:
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
$ CC="pgcc" CFLAGS="-O2" \
|
|
Packit |
90a5c9 |
./configure --prefix=/sw/pkg/apache \
|
|
Packit |
90a5c9 |
--enable-rewrite=shared \
|
|
Packit |
90a5c9 |
--enable-speling=shared
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
The easiest way to find all of the configuration flags for Apache 2.4
|
|
Packit |
90a5c9 |
is to run ./configure --help.
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
Quick Start - Windows
|
|
Packit |
90a5c9 |
---------------------
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
For complete documentation, see manual/platform/windows.html.en or
|
|
Packit |
90a5c9 |
<http://httpd.apache.org/docs/2.4/platform/windows.html>
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
Postscript
|
|
Packit |
90a5c9 |
----------
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
To obtain help with installation problems, please see the resources at
|
|
Packit |
90a5c9 |
<http://httpd.apache.org/support.html>
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
Thanks for using the Apache HTTP Server, version 2.4.
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
The Apache Software Foundation
|
|
Packit |
90a5c9 |
http://www.apache.org/
|