2025-03-07 08:58:07 +02:00
|
|
|
# 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`
|
|
|
|
|
2025-08-26 08:19:23 +03:00
|
|
|
- Print full Apache configuration (not always supported):
|
2025-03-07 08:58:07 +02:00
|
|
|
|
|
|
|
`apachectl -S`
|
2025-03-26 00:36:41 +02:00
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
`apachectl -h`
|