Ga naar de inhoud

Start / Stop and Restart Apache met ubuntu linux

Restart Apache 2 web server, enter:
/etc/init.d/apache2 restart

OR
sudo /etc/init.d/apache2 restart

OR
sudo service apache2 restart

To stop Apache 2 web server, enter:
/etc/init.d/apache2 stop

OR
sudo /etc/init.d/apache2 stop

OR
sudo service apache2 stop

To start Apache 2 web server, enter:
/etc/init.d/apache2 start

OR
sudo /etc/init.d/apache2 start

OR
sudo service apache2 start

## Start command ##

via systemctl
sudo systemctl start apache2.service
## Stop command ##
sudo systemctl stop apache2.service
## Restart command ##
sudo systemctl restart apache2.service

sudo systemctl status apache2.service

type -a apachectl
type -a apache2ctl

Linux:  start – stop – restart Apache

# service apache2 start
service apache2 stop
service apache2 status
service apache2 restar