Skip to content

Apache 2 Basic Terminal Commands

ArticleApacheLinuxCommand LineTerminal

Terminal window
sudo service apache2 start
sudo service apache2 stop
sudo service apache2 status
Terminal window
sudo a2ensite local.newsite.com

or

Terminal window
sudo a2ensite local.newsite.com.conf

add a new local site - afterwards run sudo service apache2 reload

Terminal window
sudo service apache2 reload

reload apache

Terminal window
sudo /etc/init.d/httpd start
sudo /etc/init.d/httpd stop
sudo /etc/init.d/httpd restart
sudo /etc/init.d/httpd status