1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 21:17:57 +01:00
tldr/pages/linux/apache2ctl.md
Lena 7ca1069d76
pages/*: reword descriptions without using "a CLI for" etc. (#10437)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-07-16 19:23:40 +02:00

535 B

apache2ctl

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.

  • 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