Apache HTTP Server Version 2.2
httpd
is the Apache HyperText Transfer Protocol
(HTTP) server program. It is designed to be run as a standalone
daemon process. When used like this it will create a pool of
child processes or threads to handle requests.
In general, httpd
should not be invoked directly,
but rather should be invoked via apache2ctl
on Unix-based systems or as a service on Windows NT,
2000 and XP and as
a console application on Windows 9x and ME.
httpd [ -d
serverroot ] [ -f config ]
[ -C directive ] [ -c
directive ] [ -D parameter ]
[ -e level ] [ -E
file ]
[ -k start|restart|graceful|stop|graceful-stop ]
[ -R directory ] [ -h ]
[ -l ] [ -L ] [ -S ]
[ -t ] [ -v ] [ -V ]
[ -X ] [ -M ] [ -T ]
On Windows systems, the following additional arguments are available:
httpd [ -k
install|config|uninstall ] [ -n name ]
[ -w ]
-d serverroot
ServerRoot
directive to
serverroot. This can be overridden by the ServerRoot
directive in the configuration file. The default is
/usr/local/apache2
.-f config
ServerRoot
. The default is
conf/apache2.conf
.-k start|restart|graceful|stop|graceful-stop
httpd
to start, restart, or stop. See Stopping Apache for more information.-C directive
-c directive
-D parameter
<IfDefine>
sections
in the configuration files to conditionally skip or process commands
at server startup and restart. Also can be used to set certain
less-common startup parameters including -DNO_DETACH
(prevent the parent from forking) and -DFOREGROUND
(prevent the parent from calling setsid()
et al).-e level
LogLevel
to
level during server startup. This is useful for
temporarily increasing the verbosity of the error messages to find
problems during startup.-E file
-R directory
SHARED_CORE
rule, this specifies the directory for the shared
object files.-h
-l
LoadModule
directive.-L
-M
-S
-T
(Available in 2.2.17 and later)-t
-v
httpd
, and then exit.-V
httpd
, and
then exit.-X
The following arguments are available only on the Windows platform:
-k install|config|uninstall
-n name
-w