To check your apache2 config files for syntax errors run
sudo apache2ctl configtest
or shorter
sudo apache2ctl -t
Be aware that this does not guarantee a successful Apache startup. It may still fail due to permission errors, etc.
Posted by Martin Straub to makandra dev (2011-06-07 12:41)