- method 1: using apachectl

apachectl -t -D DUMP_MODULES

- method 2: using the info module

NOTE: This procedure works in Apache 2 and later, is slightly different in earlier versions

  1. List the modules compiled into the server:
    apache2 -l
  2. Enable the server information module:
    a2enmod info
  3. Make sure the following section is commented out in apache2.conf (it could also be in /etc/apache2/mods-enabled/info.conf):
    <Location /server-info>
    SetHandler server-info
    Order deny,allow
    Deny from all
    Allow from localhost
    </Location>
  4. Restart the server:
    /etc/init.d/apache2 force-reload
  5. Now access to the required information in http://localhost/server-info (change localhost for something appropriate if Apache is not installed in the local machine, in that case remember to also modify accordingly the 'Allow from' directive in the previous step).