Get Apache Info

This tip is courtesy of Chris Krall.

How do I find out my Apache server version? How do I find out what modules loaded?

# httpd -v

Server version: Apache/2.2.3
Server built: Jun 16 2011 11:26:48

To dump a list of loaded Static and Shared Modules:

# httpd -M

Loaded Modules:
 core_module (static)
 :
 :
 ssl_module (shared)
Syntax OK

If you made any changes to httpd.conf, check httpd syntax for error using the -t option:

# httpd -t

Syntax OK

Leave a Reply