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 for few changes.
Apache may sometime crash or stop for many reasons. I had this issue with one of the server where Let’s Encrypt post hook does not start Apache for whatever reasons.