Restart:
/etc/init.d/apache2 restartsudo /etc/init.d/apache2 restart
sudo service apache2 restart
Stop
/etc/init.d/apache2 stop
sudo /etc/init.d/apache2 stop
sudo service apache2 stop
/etc/init.d/apache2 start
sudo /etc/init.d/apache2 start
sudo service apache2 start
Debian Linux version 8.x+ or Ubuntu Linux version Ubuntu 15.04+ or above:
sudo systemctl stop apache2.service
sudo systemctl restart apache2.service
sudo systemctl status apache2.service
CentOS/RHEL (Red Hat) Linux version 4.x/5.x/6.x:
## Start ##
service httpd start
## Stop ##
service httpd stop
## Restart ##
service httpd restart
CentOS/Fedora/RHEL (Red Hat) Linux version 7.x or newer:
## Start command ##
sudo systemctl start httpd.service
## Stop command ##
sudo systemctl stop httpd.service
## Restart command ##
sudo systemctl restart httpd.service
Alpine Linux:
service apache2 start
service apache2 stop
service apache2 status
service apache2 restart