From e10778e24c6322087b6d65602f433bad2777d500 Mon Sep 17 00:00:00 2001 From: Amit Sharma <7789327+amitech@users.noreply.github.com> Date: Wed, 2 May 2018 16:11:22 +0530 Subject: [PATCH] apache2ctl: add page (#2073) --- pages/linux/apache2ctl.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/linux/apache2ctl.md diff --git a/pages/linux/apache2ctl.md b/pages/linux/apache2ctl.md new file mode 100644 index 000000000..98aebbb30 --- /dev/null +++ b/pages/linux/apache2ctl.md @@ -0,0 +1,24 @@ +# 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`