4 ms·
`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.
by ceejayoz 15y ago
`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.
- scdc 15y agoWe have Apache running on some Windows boxes-- haven't found a way to run apachectl on Windows...
- ceejayoz 15y ago`apache.exe -t` according to http://www.zrinity.com/developers/apache/usage.cfm http://www.zrinity.com/developers/apache/usage.cfm
- batista 15y agoOops, sorry, meant: 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.
- kaolinite 15y agoThe Apache config test does not catch every error and you can still cause crashes if you don't check it over by hand.