Making and Installing Apache v2 Under Unix
Disregard all the previous instructions for Apache compilation. There is no longer a .../src directory. Even the name of the Unix source file has changed. We downloaded httpd-2_0_40.tar.gz and unpacked it in /usr/src/apache as usual. You should read the file INSTALL. The scheme for building Apache v2 is now much more in line with that for most other downloaded packages and utilities.
Set up the configuration file with this:
./configure --prefix=/usr/local
or wherever it is you want to keep the Apache bits — which will
appear in various subdirectories. The executable, for instance, will
be in .../sbin. If you are compiling under
FreeBSD, as we were, --with-mpm=prefork
is
automatically used internally, since threads do not currently work
well under this operating system. To see all the configuration
possibilities:
./configure --help | more
If you want to preserve your Apache 1.3.X executable, you might rename it to httpd.13, wherever it is, and then:
make
which takes a surprising amount of time to run. Then:
make install
The result is a nice new httpd in /usr/local/sbin.
Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.