Service Management

Service Management commands for Apache

Install

sudo apt update && sudo apt upgrade -y
sudo apt install apache2

Status

sudo systmectl status apache2

Start

sudo systemctl start apache2

Stop

sudo systemctl stop apache2

Reload config (without dropping connections)

sudo systemctl reload apache2

Restart

sudo systemctl restart apache2

Enable on Boot

sudo systemctl enable apache2

Disable on Boot

sudo systemctl disable apache2