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
Disclosure
When you buy through affiliate links on our site, we may earn an affiliate commission, at no cost to you.