check apache config code example
Example 1: apache check config
#check the syntax on your apache config(s) BEFORE you restart
sudo apachectl -t
#if that doesn't work on your server give this a go
sudo apache2ctl configtest
Example 2: test apache config
apachectl configtest