1
.TH apache2 8 "February 1997"
2
.\" The Apache Software License, Version 1.1
4
.\" Copyright (c) 2000-2002 The Apache Software Foundation. All rights
7
.\" Redistribution and use in source and binary forms, with or without
8
.\" modification, are permitted provided that the following conditions
11
.\" 1. Redistributions of source code must retain the above copyright
12
.\" notice, this list of conditions and the following disclaimer.
14
.\" 2. Redistributions in binary form must reproduce the above copyright
15
.\" notice, this list of conditions and the following disclaimer in
16
.\" the documentation and/or other materials provided with the
19
.\" 3. The end-user documentation included with the redistribution,
20
.\" if any, must include the following acknowledgment:
21
.\" "This product includes software developed by the
22
.\" Apache Software Foundation (http://www.apache.org/)."
23
.\" Alternately, this acknowledgment may appear in the software itself,
24
.\" if and wherever such third-party acknowledgments normally appear.
26
.\" 4. The names "Apache" and "Apache Software Foundation" must
27
.\" not be used to endorse or promote products derived from this
28
.\" software without prior written permission. For written
29
.\" permission, please contact apache@apache.org.
31
.\" 5. Products derived from this software may not be called "Apache",
32
.\" nor may "Apache" appear in their name, without prior written
33
.\" permission of the Apache Software Foundation.
35
.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
36
.\" WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
37
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
38
.\" DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
39
.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
40
.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
41
.\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
42
.\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
43
.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
44
.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
45
.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
48
.\" This software consists of voluntary contributions made by many
49
.\" individuals on behalf of the Apache Software Foundation. For more
50
.\" information on the Apache Software Foundation, please see
51
.\" <http://www.apache.org/>.
1
.TH "APACHE2" 8 "2005-09-20" "Apache HTTP Server" "apache2"
54
apache2 \- Apache hypertext transfer protocol server
94
is the Apache HyperText Transfer Protocol (HTTP) server program. It is
95
designed to be run as a standalone daemon process. When used like this
96
it will create a pool of child processes to handle requests. To stop
97
it, send a TERM signal to the initial (parent) process. The PID of
98
this process is written to a file as given in the configuration file.
100
This manual page only lists the command line arguments. For details
101
of the directives necessary to configure
103
see the Apache manual,
104
which is part of the Apache distribution or can be found at
105
http://httpd.apache.org/. Paths in this manual may not reflect those
110
.BI \-d " serverroot"
111
Set the initial value for the ServerRoot directive to \fIserverroot\fP. This
112
can be overridden by the ServerRoot command in the configuration file. The
113
default is \fB/usr/local/apache2\fP.
116
Execute the commands in the file \fIconfig\fP on startup. If \fIconfig\fP
117
does not begin with a /, then it is taken to be a path relative to
118
the ServerRoot. The default is \fBconf/apache2.conf\fP.
121
Process the configuration \fIdirective\fP before reading config files.
124
Process the configuration \fIdirective\fP after reading config files.
127
Sets a configuration \fIparameter\fP which can be used with
128
<IfDefine>...</IfDefine> sections in the configuration files
129
to conditionally skip or process commands.
132
Output a short summary of available command line options.
135
Output a list of modules compiled into the server.
138
Output a list of directives together with expected arguments and
139
places where the directive is valid.
142
Show the settings as parsed from the config file (currently only shows the
143
virtualhost settings).
146
Run syntax tests for configuration files only. The program immediately exits
147
after these syntax parsing with either a return code of 0 (Syntax OK) or
148
return code not equal to 0 (Syntax Error). If
149
.BI \-D " DUMP_VHOSTS"
150
is also set, details of the virtual host configuration will be printed.
158
Print the version and build parameters of
165
in debug mode. Only one worker will be started and the server will not detach
169
.B /usr/local/apache2/conf/apache2.conf
171
.B /usr/local/apache2/conf/mime.types
173
.B /usr/local/apache2/conf/magic
175
.B /usr/local/apache2/logs/error_log
177
.B /usr/local/apache2/logs/access_log
179
.B /usr/local/apache2/logs/apache2.pid
4
apache2 \- Apache Hypertext Transfer Protocol Server
9
\fBapache2\fR [ -\fBd\fR \fIserverroot\fR ] [ -\fBf\fR \fIconfig\fR ] [ -\fBC\fR \fIdirective\fR ] [ -\fBc\fR \fIdirective\fR ] [ -\fBD\fR \fIparameter\fR ] [ -\fBe\fR \fIlevel\fR ] [ -\fBE\fR \fIfile\fR ] [ \fB-k\fR start|restart|graceful|stop|graceful-stop ] [ -\fBR\fR \fIdirectory\fR ] [ -\fBh\fR ] [ -\fBl\fR ] [ -\fBL\fR ] [ -\fBS\fR ] [ -\fBt\fR ] [ -\fBv\fR ] [ -\fBV\fR ] [ -\fBX\fR ] [ -\fBM\fR ]
15
apache2 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\&.
18
In general, apache2 should not be invoked directly, but rather should be invoked via /etc/init.d/apache2\&.
21
The full documentation is available in the apache2-doc package or at http://httpd.apache.org/docs/2.2/
29
Set the initial value for the ServerRoot directive to \fIserverroot\fR\&. This can be overridden by the ServerRoot directive in the configuration file\&.
32
Uses the directives in the file \fIconfig\fR on startup\&. If \fIconfig\fR does not begin with a /, then it is taken to be a path relative to the ServerRoot\&. The default is /etc/apache2/apache2\&.conf\&.
34
-k start|restart|graceful|stop|graceful-stop
35
Signals apache2 to start, restart, or stop\&. See Stopping Apache for more information\&.
38
Process the configuration \fIdirective\fR before reading config files\&.
41
Process the configuration \fIdirective\fR after reading config files\&.
44
Sets a configuration \fIparameter \fRwhich can be used with <IfDefine> sections in the configuration files to conditionally skip or process commands at server startup and restart\&.
47
Sets the LogLevel to \fIlevel\fR during server startup\&. This is useful for temporarily increasing the verbosity of the error messages to find problems during startup\&.
50
Send error messages during server startup to \fIfile\fR\&.
53
When the server is compiled using the SHARED_CORE rule, this specifies the \fIdirectory\fR for the shared object files\&.
56
Output a short summary of available command line options\&.
59
Output a list of modules compiled into the server\&. This will \fBnot\fR list dynamically loaded modules included using the LoadModule directive\&.
62
Output a list of directives together with expected arguments and places where the directive is valid\&.
65
Dump a list of loaded Static and Shared Modules\&.
68
Show the settings as parsed from the config file (currently only shows the virtualhost settings)\&.
71
Run syntax tests for configuration files only\&. The program immediately exits after these syntax parsing tests with either a return code of 0 (Syntax OK) or return code not equal to 0 (Syntax Error)\&. If -D \fIDUMP\fR_\fIVHOSTS \fRis also set, details of the virtual host configuration will be printed\&. If -D \fIDUMP\fR_\fIMODULES \fR is set, all loaded modules will be printed\&.
74
Print the version of apache2, and then exit\&.
77
Print the version and build parameters of apache2, and then exit\&.
80
Run apache2 in debug mode\&. Only one worker will be started and the server will not detach from the console\&.