Check apache config files' syntax

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.

Martin Straub