Files
cheatsheet-tldr/tldr/linux/apache2ctl
2024-09-19 00:16:36 +00:00

31 lines
595 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# apache2ctl
> Administrate the Apache HTTP web server.
> This command comes with Debian based OSes, for RHEL based ones see `httpd`.
> More information: <https://manned.org/apache2ctl.8>.
- 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`