Home apache How do I restart Apache?

How do I restart Apache?




Answer 1, authority 100%

This is a hard restart:

sudo /etc/init.d/apache2 restart

Restart without killing the process, just applying the new configuration:

sudo /etc/init.d/apache2 reload

Answer 2, authority 75%

To restart, use:

sudo apache2ctl restart

You can learn more about the command by calling the help:

man apache2ctl

Answer 3, authority 38%

sudo service apache2 restart

in more detail here:

Answer 4, authority 25%

If systemd is installed, then you can restart using it :

sudo systemctl restart apache2.service

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions