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>.

Install

All systems
curl cmd.cat/apache2ctl.sh
Debian Debian
apt-get install apache2
Ubuntu
apt-get install apache2
Alpine
apk add apache2
image/svg+xml Kali Linux
apt-get install apache2
Windows (WSL2)
sudo apt-get update sudo apt-get install apache2
Raspbian
apt-get install apache2
Docker
docker run cmd.cat/apache2ctl apache2ctl powered by Commando

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

© tl;dr; authors and contributors