Question #465   Submitted by Answiki on 05/10/2021 at 06:33:52 PM UTC

On Linux, how to restart an Apache server?

Answer   Submitted by Answiki on 05/10/2021 at 06:40:24 PM UTC

On Linux, there are several ways to restart an Apache server. If your system is based ont the systemctl service manager, use:

sudo systemctl restart apache2


Otherwise :

sudo service apache2 restart

or

sudo service apache2 reload

3 events in history
Answer by Answiki on 05/10/2021 at 06:40:24 PM

On Linux, there are several ways to restart an Apache server. If your system is based ont the systemctl service manager, use:

sudo systemctl restart apache2


Otherwise :

sudo service apache2 restart

or

sudo service apache2 reload

Answer by Answiki on 05/10/2021 at 06:39:27 PM

On Linux, there are several ways to restart an Apache server :


Recommended option if you use the system and service manager systemctl :

sudo systemctl restart apache2

otherwise :

sudo service apache2 reload

or

sudo service apache2 restart

Question by Answiki 05/10/2021 at 06:33:52 PM
On Linux, how to restart an Apache server?
# ID Query URL Count

Icons proudly provided by Friconix.