1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 13:42:07 +02:00
tldr/pages/linux/apache2ctl.md
2020-10-27 11:01:11 +00:00

24 lines
460 B
Markdown

# apache2ctl
> The CLI tool to administrate HTTP web server Apache.
> This command comes with Debian based OSes, for RHEL based ones see `httpd`.
- 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`