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
script takes one-word arguments like
stop, and translates them into appropriate signals to
script returns a 0 exit value on success, and >0 if an error occurs.
The version of
used on this system is a replacement script intended to be mostly (but not completely) compatible with version provided with
Apache httpd. This
mostly acts as a wrapper around
and manipulates the
httpd. The interface to the
is described at
The following differences are present in the version of
present on this system:
Option arguments passed when starting
are not allowed. These should be configured in the systemd service directly (see
option is not available.
option does not use or rely on the running server's
Start the Apache
daemon. Gives an error if it is already running. This is equivalent to
systemctl start httpd.service.
Stops the Apache
daemon. This is equivalent to
systemctl stop httpd.service.
Restarts the Apache
daemon. If the daemon is not running, it is started. This is equivalent to
systemctl restart httpd.service.
Displays a brief status report. This is equivalent to
systemctl status httpd.service.
Gracefully restarts the Apache
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 is equivalent to
systemctl kill --signal=SIGUSR1 --kill-who=main httpd.service.
Gracefully stops the Apache
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
systemctl kill --signal=SIGWINCH --kill-who=main httpd.service.
Run a configuration file syntax test. It parses the configuration files and either reports
or detailed information about the particular syntax error. This is equivalent to
Please report bugs by filing an issue in Bugzilla via
Apache Software Foundation contributors
Apache man page
Fedora man page