Apache HTTP Server Version 2.0
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 apachectl
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 ]
[ -R directory ] [ -h ]
[ -l ] [ -L ] [ -S ]
[ -t ] [ -v ] [ -V ]
[ -X ]
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/httpd.conf
.-k start|restart|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.-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
-S
-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