👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.

On Linux, how to restart an Apache server?

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

More