Skip to content

Instantly share code, notes, and snippets.

@rizkysyazuli
Last active February 21, 2020 11:27
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 rizkysyazuli/522662847b9d30144a96fc3313fdec2a to your computer and use it in GitHub Desktop.
Save rizkysyazuli/522662847b9d30144a96fc3313fdec2a to your computer and use it in GitHub Desktop.
[Shell - Apache Commands] #ubuntu #centos #apache
# Ubuntu
sudo service apache2 start
sudo service apache2 stop
sudo service apache2 restart
# CentOS 7.x or newer
sudo systemctl start httpd.service
sudo systemctl stop httpd.service
sudo systemctl restart httpd.service
# Check active vhosts
apache2ctl -S | grep 'namevhost '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment