How to start stop restart Apache web server in Ubuntu

  • SumoMe

Hello, today I will show you how to start/stop/restart your Apache server. First you need to use sudo command restart Apache.
To start apache use this command:

sudo /etc/init.d/apache2 start

To stop apache use this command:

sudo /etc/init.d/apache2 stop

To restart apache use this command:

sudo /etc/init.d/apache2 restart

That’s all, good luck.

Leave a Reply


*