Restart Apache:
service httpd restart
or
/etc/rc.d/init.d/httpd restart
Note: You should be logged in as root or use su
Other commands:
/etc/rc.d/init.d/httpd status
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start
Note: /etc/rc.d/init.d/httpd seems to be different from /usr/sbin/httpd
Location of “service”:
/sbin/service
Example: /sbin/service sendmail restart
test comment
Thank you for the post. It helped me out.
Just what I was looking for. Thanks!
Jake H.