Skip to content

Instantly share code, notes, and snippets.

@feliperomero3
Created July 26, 2019 21:59
Show Gist options
  • Save feliperomero3/472493b85b64282698377b3f0a7bde1b to your computer and use it in GitHub Desktop.
Save feliperomero3/472493b85b64282698377b3f0a7bde1b to your computer and use it in GitHub Desktop.
Apache on Ubuntu 18.04
# https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-18-04
# Check with the systemd init system to make sure the service is running by typing:
sudo systemctl status apache2
# To stop your web server, type:
sudo systemctl stop apache2
# To start the web server when it is stopped
sudo systemctl start apache2
# To stop and then start the service again
sudo systemctl restart apache2
# If you are simply making configuration changes, Apache can often reload without dropping connections
sudo systemctl reload apache2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment