tldr/pages/linux/apache2ctl.md

26 lines
535 B
Markdown
Raw Normal View History

2018-05-02 11:41:22 +01:00
# apache2ctl
> Administrate the Apache HTTP web server.
2020-10-27 06:31:42 +00:00
> This command comes with Debian based OSes, for RHEL based ones see `httpd`.
2021-03-29 16:35:23 +01:00
> More information: <https://manpages.debian.org/latest/apache2/apache2ctl.8.en.html>.
2018-05-02 11:41:22 +01:00
- Start the Apache daemon. Throw a message if it is already running:
`sudo apache2ctl start`
- Stop the Apache daemon:
`sudo apache2ctl stop`
- Restart the Apache daemon:
`sudo apache2ctl restart`
- Test syntax of the configuration file:
`sudo apache2ctl -t`
- List loaded modules:
`sudo apache2ctl -M`