Apache HTTP Server Version 2.2
This document refers to the 2.2 version of Apache httpd, which is no longer maintained. The active release is documented here. If you have not already upgraded, please follow this link for more information.
You may follow this link to go to the current version of this document.
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.
apachectl
httpd [ -d
serverroot ] [ -f config ]
[ -C directive ] [ -c
directive ] [ -D parameter ]
[ -e level ] [ -E
file ]
[ -k start|restart|graceful|stop|graceful-stop ]
[ -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/httpd.conf
.
-k start|restart|graceful|stop|graceful-stop
httpd
to start, restart, or stop. See Stopping Apache httpd 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