Friday, August 19, 2011

How to list active Apache modules ?

Sometime we stuck with some basic things in Apache. httpd command is very useful in this way.


To list active modules in Apache

root# httpd -t -D DUMP_MODULES

or

root# httpd -M

To list compiled in modules

root#httpd -l

To get virtual host lists

root#httpd -S

To test httpd configuration

root#httpd -t