Few days ago i wrote about how to start/restart Apache if it is inactive in Ubuntu. Today i am going to share a bash script for CentOS 7. It is mostly the same except few changes.
Apache may sometime crash or stop for some other reasons. I had this issue with one of the server where Let’s Encrypt post hook does start Apache for whatever reasons.