Skip to content

Instantly share code, notes, and snippets.

@dhanar98
Created December 5, 2021 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhanar98/e6a9c069a43be28efaa04132904085ba to your computer and use it in GitHub Desktop.
Save dhanar98/e6a9c069a43be28efaa04132904085ba to your computer and use it in GitHub Desktop.
Managing Apache Server Commands

To start the Apache server: sudo systemctl start apache2

To stop the Apache server: sudo systemctl stop apache2

To stop and then start Apache sudo systemctl restart apache2

To reload apache server to update the new configurations sudo systemctl reload apache2

To start Apache at boot: sudo systemctl enable apache2

To disable Apache at boot: sudo systemctl disable apache2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment