How to check mod_headers and mod_expires modules enabled in apache

Giri picture Giri · Jan 9, 2012 · Viewed 80.4k times · Source

I want to check whether mod_headers and mod_expires modules enabled or not in my server

Is there a way available to list apache enabled/disabled modules using some php function just like we list php information with phpinfo(); function?

Answer

noun picture noun · Jul 8, 2014

All the above answers are wrong. Use instead:

apachectl -t -D DUMP_MODULES

or

apachectl -M