1.11. New Features in Apache v2The procedure for configuring and compiling Apache has changed, as we will see later. High-level decisions about the way Apache works internally can now be made at compile time by including one of a series of Multi Processing Modules (MPMs). This is done by attaching a flag to configure: ./configure <other flags> --with_mpm=<name of MPM> Although MPMs are rather like ordinary modules, only one can be used at a time. Some of them are designed to adapt Apache to different operating systems; others offer a range of different optimizations for Unix. It will be shown, along with the other compiled-in modules, by executing httpd -l. When we went to press, these were the possible MPMs under Unix:
Other operating systems have their own MPMs:
To begin with, accept the default MPM. More advanced users should refer to http://httpd.apache.org/docs-2.0/mpm.html and http://httpd.apache.org/docs-2.0/misc/perf-tuning.html. See the entry for the AcceptMutex directive in Chapter 3. 1.11.1. Config File Changes in v2Version 2.0 makes the following changes to the Config file:
1.11.2. httpd Command-Line ChangesRunning the v2 httpd with the flag -h to show the possible command-line flags produces this: Usage: ./httpd [-D name] [-d directory] [-f file] [-C "directive"] [-c "directive"] [-v] [-V] [-h] [-l] [-L] [-t] [-T] Options: -D name : define a name for use in <IfDefine name> directives -d directory : specify an alternate initial ServerRoot -f file : specify an alternate ServerConfigFile -C "directive" : process directive before reading config files -c "directive" : process directive after reading config files -v : show version number -V : show compile settings -h : list available command line options (this page) -l : list compiled in modules -L : list available configuration directives -t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings) -t : run syntax check for config files (with docroot check) -T : run syntax check for config files (without docroot check) In particular, the -X flag has been removed. You can get the same effect — running a single copy of Apache without any children being generated — with this: httpd -D ONE_PROCESS or: httpd -D NO_DETACH depending on the MPM used. The available flags for each MPM will be visible on running httpd with -?. 1.11.3. Module Changes in v2Version 2.0 makes the following changes to module handling:
Copyright © 2003 O'Reilly & Associates. All rights reserved. |
|