Additional modules not detected

I am using w3 total cache and its compatibility check gave me following error

mod_deflate: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_env: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_expires: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_filter: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_ext_filter: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_headers: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_mime: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_rewrite: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_setenvif: Not detected (required for disk enhanced Page Cache and Browser Cache)

When I run:

apachectl -t -D DUMP_MODULES |grep setenvif
setenvif_module (shared)
apachectl -t -D DUMP_MODULES |grep expires
expires_module (shared)

In webmin > apache, I have checked and all the required modules are enabled but not detected. Do I need to enable them for vhost file also.
If yes, then please provide me detailed instruction about it.