apachectl 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
The apachectl script can operate in two modes.
First, it can act as a simple front-end to the apachectl can act as a SysV init
script, taking simple one-word arguments like start,
restart, and stop, and translating them
into appropriate signals to
If your Apache installation uses non-standard paths, you will
need to edit the apachectl script to set the
appropriate paths to the
The apachectl script returns a 0 exit value on
success, and >0 if an error occurs. For more details, view
the comments in the script.
When acting in pass-through mode, apachectl can take
all the arguments available for the
apachectl [ httpd-argument ]
When acting in SysV init mode, apachectl takes simple,
one-word commands, defined below.
apachectl command
Only the SysV init-style options are defined here. Other arguments
are defined on the
startapachectl -k
start.stopapachectl -k stop.restartconfigtest before initiating
the restart to make sure the daemon doesn't die. This is equivalent
to apachectl -k restart.fullstatuslynx
available on your system. The URL used to access the status report
can be set by editing the STATUSURL variable in the
script.statusfullstatus option, except that the list of requests
currently being served is omitted.gracefulconfigtest before initiating the
restart to make sure Apache doesn't die. This is equivalent to
apachectl -k graceful.graceful-stopapachectl -k graceful-stop.configtestSyntax Ok
or detailed information about the particular syntax error. This is
equivalent to apachectl -t.The following option was available in earlier versions but has been removed.
startsslapachectl start.