To manage apache in your linux ubuntu, here are some helpful terminal commands to help you if you are an administrator.

INSTALL, ENABLE, START.

  1. Install apache server
    sudo apt install apache2
  2. Enable apache at startup initial boot time
    sudo systemctl enable apache2
  3. Start and enable apache2
    sudo systemctl start apache2

REMOVE, DISABLE, STOP

  • Remove apache server
    sudo apt remove apache2
  • Disable apache at startup initial boot time
    sudo systemctl disable apache2
  • Stop apache2
    sudo systemctl stop apache2

CHECK STATUS

  • Check if apache is running
    sudo systemctl status apache2