How to Restart Apache2 Webserver

Apache can be restarted using the following methods on Linux or Unix systems.

Log in to your web server through SSH client.

After logging in type the following command to restart Apache2.

For Debian/Ubuntu system:

sudo service apache2 restart


For CentOS/RHEL (Red Hat)

service httpd restart



When you buy through affiliate links on our site, we may earn an affiliate commission, at no cost to you.
Editor Desk
Editor Desk

I love to drive car and passionate about long drives

Register New Account
InsideHost - Your ultimate hosting partner!
Compare items
  • Total (0)