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
sudo apache2ctl stop
- Restart the Apache daemon:
sudo apache2ctl restart
- Test syntax of the configuration file:
sudo apache2ctl -t
sudo apache2ctl -M
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).