Skip to content

Latest commit

History

History
24 lines (13 loc) 路 461 Bytes

apache2ctl.md

File metadata and controls

24 lines (13 loc) 路 461 Bytes

apache2ctl

The CLI tool to administrate HTTP web server Apache. This commmand 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

  • 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