apache2ctl Command Examples

Administrate the Apache HTTP web server. This command comes with Debian based OSes, for RHEL based ones see httpd. More information: https://manpages.debian.org/latest/apache2/apache2ctl.8.en.html.

sudo apache2ctl start

sudo apache2ctl stop

sudo apache2ctl restart

sudo apache2ctl -t

sudo apache2ctl -M