1HTTPD(8)                             httpd                            HTTPD(8)
2
3
4

NAME

6       httpd - Apache Hypertext Transfer Protocol Server
7
8

SYNOPSIS

10       httpd [ -d serverroot ] [ -f config ] [ -C directive ] [ -c directive ]
11       [ -D parameter ] [ -e level ] [ -E file  ]  [  -k  start|restart|grace‐
12       ful|stop|graceful-stop ] [ -h ] [ -l ] [ -L ] [ -S ] [ -t ] [ -v ] [ -V
13       ] [ -X ] [ -M ] [ -T ]
14
15
16       On Windows systems, the following additional arguments are available:
17
18
19       httpd [ -k install|config|uninstall ] [ -n name ] [ -w ]
20
21
22

SUMMARY

24       httpd is the Apache HyperText Transfer Protocol (HTTP) server  program.
25       It is designed to be run as a standalone daemon process. When used like
26       this it will create a pool of child  processes  or  threads  to  handle
27       requests.
28
29
30       In  general, httpd should not be invoked directly, but rather should be
31       invoked via apachectl on Unix-based systems or as a service on  Windows
32       NT, 2000 and XP and as a console application on Windows 9x and ME.
33
34
35

OPTIONS

37       -d serverroot
38              Set  the  initial  value for the ServerRoot directive to server‐
39              root. This can be overridden by the ServerRoot directive in  the
40              configuration file. The default is /etc/httpd.
41
42       -f config
43              Uses  the  directives  in  the file config on startup. If config
44              does not begin with a /, then it is taken to be a path  relative
45              to the ServerRoot. The default is conf/httpd.conf.
46
47       -k start|restart|graceful|stop|graceful-stop
48              Signals  httpd  to  start, restart, or stop. See Stopping Apache
49              httpd for more information.
50
51       -C directive
52              Process the configuration directive before reading config files.
53
54       -c directive
55              Process the configuration directive after reading config files.
56
57       -D parameter
58              Sets a configuration parameter which can be used with <IfDefine>
59              sections  in  the  configuration  files to conditionally skip or
60              process commands at server startup and restart. Also can be used
61              to   set   certain   less-common  startup  parameters  including
62              -DNO_DETACH (prevent the parent from forking)  and  -DFOREGROUND
63              (prevent the parent from calling setsid() et al).
64
65       -e level
66              Sets the LogLevel to level during server startup. This is useful
67              for temporarily increasing the verbosity of the  error  messages
68              to find problems during startup.
69
70       -E file
71              Send error messages during server startup to file.
72
73       -h     Output a short summary of available command line options.
74
75       -l     Output a list of modules compiled into the server. This will not
76              list dynamically loaded modules included  using  the  LoadModule
77              directive.
78
79       -L     Output a list of directives provided by static modules, together
80              with expected arguments and places where the directive is valid.
81              Directives provided by shared modules are not listed.
82
83       -M     Dump a list of loaded Static and Shared Modules.
84
85       -S     Show the settings as parsed from the config file (currently only
86              shows the virtualhost settings).
87
88       -T (Available in 2.3.8 and later)
89              Skip document root check at startup/restart.
90
91       -t     Run syntax tests for configuration files only. The program imme‐
92              diately  exits  after  these  syntax parsing tests with either a
93              return code of 0 (Syntax OK) or return code not equal to 0 (Syn‐
94              tax  Error).  If -D DUMP_VHOSTS is also set, details of the vir‐
95              tual host configuration will be printed. If -D DUMP_MODULES   is
96              set, all loaded modules will be printed.
97
98       -v     Print the version of httpd, and then exit.
99
100       -V     Print the version and build parameters of httpd, and then exit.
101
102       -X     Run httpd in debug mode. Only one worker will be started and the
103              server will not detach from the console.
104
105
106       The following arguments are available only on the Windows platform:
107
108
109
110       -k install|config|uninstall
111              Install Apache httpd as a Windows  NT  service;  change  startup
112              options  for  the Apache httpd service; and uninstall the Apache
113              httpd service.
114
115       -n name
116              The name of the Apache httpd service to signal.
117
118       -w     Keep the console window open on error so that the error  message
119              can be read.
120
121
122
123
124Apache HTTP Server                2018-07-06                          HTTPD(8)
Impressum