Files
cheatsheet-tldr/tldr/linux/apachectl
2025-08-27 00:19:48 +00:00

42 lines
649 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# apachectl
> Control an Apache HTTP server.
> More information: <https://manned.org/apachectl>.
- Start the server:
`sudo apachectl start`
- Restart the server:
`sudo apachectl restart`
- Stop the server:
`sudo apachectl stop`
- Test configuration file validity:
`apachectl configtest`
- Check server status (requires the lynx browser):
`apachectl status`
- Reload configuration without dropping connections:
`sudo apachectl graceful`
- Print full Apache configuration (not always supported):
`apachectl -S`
- Display help:
`apachectl -h`