Blame docs/man/apachectl.8

Packit 90a5c9
.\" XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Packit 90a5c9
.\" DO NOT EDIT! Generated from XML source.
Packit 90a5c9
.\" XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Packit 90a5c9
.de Sh \" Subsection
Packit 90a5c9
.br
Packit 90a5c9
.if t .Sp
Packit 90a5c9
.ne 5
Packit 90a5c9
.PP
Packit 90a5c9
\fB\\$1\fR
Packit 90a5c9
.PP
Packit 90a5c9
..
Packit 90a5c9
.de Sp \" Vertical space (when we can't use .PP)
Packit 90a5c9
.if t .sp .5v
Packit 90a5c9
.if n .sp
Packit 90a5c9
..
Packit 90a5c9
.de Ip \" List item
Packit 90a5c9
.br
Packit 90a5c9
.ie \\n(.$>=3 .ne \\$3
Packit 90a5c9
.el .ne 3
Packit 90a5c9
.IP "\\$1" \\$2
Packit 90a5c9
..
Packit 90a5c9
.TH "APACHECTL" 8 "2018-07-06" "Apache HTTP Server" "apachectl"
Packit 90a5c9
Packit 90a5c9
.SH NAME
Packit 90a5c9
apachectl \- Apache HTTP Server Control Interface
Packit 90a5c9
Packit 90a5c9
.SH "SYNOPSIS"
Packit 90a5c9
 
Packit 90a5c9
.PP
Packit 90a5c9
When acting in pass-through mode, \fBapachectl\fR can take all the arguments available for the httpd binary\&.
Packit 90a5c9
 
Packit 90a5c9
.PP
Packit 90a5c9
\fB\fBapachectl\fR [ \fIhttpd-argument\fR ]\fR
Packit 90a5c9
 
Packit 90a5c9
.PP
Packit 90a5c9
When acting in SysV init mode, \fBapachectl\fR takes simple, one-word commands, defined below\&.
Packit 90a5c9
 
Packit 90a5c9
.PP
Packit 90a5c9
\fB\fBapachectl\fR \fIcommand\fR\fR
Packit 90a5c9
 
Packit 90a5c9
Packit 90a5c9
.SH "SUMMARY"
Packit 90a5c9
 
Packit 90a5c9
.PP
Packit 90a5c9
\fBapachectl\fR is a front end to the Apache HyperText Transfer Protocol (HTTP) server\&. It is designed to help the administrator control the functioning of the Apache httpd daemon\&.
Packit 90a5c9
 
Packit 90a5c9
.PP
Packit 90a5c9
The \fBapachectl\fR script can operate in two modes\&. First, it can act as a simple front-end to the httpd command that simply sets any necessary environment variables and then invokes httpd, passing through any command line arguments\&. Second, \fBapachectl\fR can act as a SysV init script, taking simple one-word arguments like \fBstart\fR, \fBrestart\fR, and \fBstop\fR, and translating them into appropriate signals to httpd\&.
Packit 90a5c9
 
Packit 90a5c9
.PP
Packit 90a5c9
If your Apache installation uses non-standard paths, you will need to edit the \fBapachectl\fR script to set the appropriate paths to the httpd binary\&. You can also specify any necessary httpd command line arguments\&. See the comments in the script for details\&.
Packit 90a5c9
 
Packit 90a5c9
.PP
Packit 90a5c9
The \fBapachectl\fR script returns a 0 exit value on success, and >0 if an error occurs\&. For more details, view the comments in the script\&.
Packit 90a5c9
 
Packit 90a5c9
Packit 90a5c9
.SH "OPTIONS"
Packit 90a5c9
 
Packit 90a5c9
.PP
Packit 90a5c9
Only the SysV init-style options are defined here\&. Other arguments are defined on the httpd manual page\&.
Packit 90a5c9
 
Packit 90a5c9
 
Packit 90a5c9
.TP
Packit 90a5c9
\fBstart\fR
Packit 90a5c9
Start the Apache httpd daemon\&. Gives an error if it is already running\&. This is equivalent to \fBapachectl -k start\fR\&.  
Packit 90a5c9
.TP
Packit 90a5c9
\fBstop\fR
Packit 90a5c9
Stops the Apache httpd daemon\&. This is equivalent to \fBapachectl -k stop\fR\&.  
Packit 90a5c9
.TP
Packit 90a5c9
\fBrestart\fR
Packit 90a5c9
Restarts the Apache httpd daemon\&. If the daemon is not running, it is started\&. This command automatically checks the configuration files as in \fBconfigtest\fR before initiating the restart to make sure the daemon doesn't die\&. This is equivalent to \fBapachectl -k restart\fR\&.  
Packit 90a5c9
.TP
Packit 90a5c9
\fBfullstatus\fR
Packit 90a5c9
Displays a full status report from mod_status\&. For this to work, you need to have mod_status enabled on your server and a text-based browser such as \fBlynx\fR available on your system\&. The URL used to access the status report can be set by editing the \fBSTATUSURL\fR variable in the script\&.  
Packit 90a5c9
.TP
Packit 90a5c9
\fBstatus\fR
Packit 48c19b
Displays a brief status report using systemd\&.
Packit 90a5c9
.TP
Packit 90a5c9
\fBgraceful\fR
Packit 90a5c9
Gracefully restarts the Apache httpd daemon\&. If the daemon is not running, it is started\&. This differs from a normal restart in that currently open connections are not aborted\&. A side effect is that old log files will not be closed immediately\&. This means that if used in a log rotation script, a substantial delay may be necessary to ensure that the old log files are closed before processing them\&. This command automatically checks the configuration files as in \fBconfigtest\fR before initiating the restart to make sure Apache doesn't die\&. This is equivalent to \fBapachectl -k graceful\fR\&.  
Packit 90a5c9
.TP
Packit 90a5c9
\fBgraceful-stop\fR
Packit 90a5c9
Gracefully stops the Apache httpd daemon\&. This differs from a normal stop in that currently open connections are not aborted\&. A side effect is that old log files will not be closed immediately\&. This is equivalent to \fBapachectl -k graceful-stop\fR\&.  
Packit 90a5c9
.TP
Packit 90a5c9
\fBconfigtest\fR
Packit 90a5c9
Run a configuration file syntax test\&. It parses the configuration files and either reports \fBSyntax Ok\fR or detailed information about the particular syntax error\&. This is equivalent to \fBapachectl -t\fR\&.  
Packit 90a5c9
 
Packit 90a5c9
.PP
Packit 90a5c9
The following option was available in earlier versions but has been removed\&.
Packit 90a5c9
 
Packit 90a5c9
 
Packit 90a5c9
.TP
Packit 90a5c9
\fBstartssl\fR
Packit 90a5c9
To start httpd with SSL support, you should edit your configuration file to include the relevant directives and then use the normal \fBapachectl start\fR\&.  
Packit 90a5c9