Apache 2 Basic Terminal Commands
Debian & Apache 2
Section titled “Debian & Apache 2”Start/Stop/Status
Section titled “Start/Stop/Status”sudo service apache2 startsudo service apache2 stopsudo service apache2 statusNew vhost sites
Section titled “New vhost sites”sudo a2ensite local.newsite.comor
sudo a2ensite local.newsite.com.confadd a new local site - afterwards run sudo service apache2 reload
sudo service apache2 reloadreload apache
CentOS
Section titled “CentOS”Start/Stop/Status
Section titled “Start/Stop/Status”sudo /etc/init.d/httpd startsudo /etc/init.d/httpd stopsudo /etc/init.d/httpd restartsudo /etc/init.d/httpd status