RHEV Logo
How To Restart Apache For Each Linux Distribution

How To Restart Apache For Each Linux Distribution

How To Restart Apache For Each Linux Distribution

Seeing as how there are several ways to restart Apache for each Linux distribution, I found a few sources that have them listed out and figured it would be a good thing to share for those who like to reference back to different sites for their commands. Below you can find a few different ways for each distro to restart Apache.

Restart Apache On Ubuntu

service apache2 restart
/etc/init.d/apache2 restart
apache2ctl restart

Restart Apache On CentOS

/etc/init.d/httpd restart
service httpd restart
/sbin/service httpd restart

Restart Apache On Debian

service apache2 restart
/etc/init.d/apache2 restart
apache2ctl restart

Restart Apache On Suse

/usr/sbin/rcapache2 restart
apache2ctl restart

Restart Apache On Fedora

apachectl restart
/sbin/service httpd restart

Restart Apache On RedHat

/etc/init.d/httpd status
service httpd restart
/usr/local/apache2/bin/apachectl restart

Published by using 131 words.