`apachectl -t` checks the .conf files for syntax errors.
For this reason, there's zero excuse for ever having an Apache install crash from a typo.
For this reason, there's zero excuse for ever having an Apache install crash from a typo.
service httpd configtest
I.e run the proper init script (which might also do other checks), not just test the apache config, as you wouldn't also just start apache with apachectl.Even if you have your own version of apache compiled, you should still provide your own init script, and write in in the standard service way.