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



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