How to check apache config?

In this article let’s discuss about How to check apache config?. Let’s go through the following methods without any delay.

Method 1:

#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

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!

Method 2 :

apachectl configtest

Hope the above solution works.

Realted Posts : How to remove node_modules from git