If you have installed Apache2 as service, type the following command on the terminal.
- sudo service apache2 start : to start the server
- sudo service apache2 stop : to stop the server
- sudo service apache2 restart : to restart the server