Restart Apache in all Linux distributions

Categories General Info

From http://linuxapachemysqlphp5.blogspot.com

Restart Apache

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

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

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

Suse
/usr/sbin/rcapache2 restart
apache2ctl restart

Fedora
apachectl restart
/sbin/service httpd restart

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

Quick little ref guide there… good to know.