apache: show loaded modules
There are many ways to list the modules currently loaded in an Apache server, here are 2 of them:
Method 1: use apachectl
Execute from the command line:
apachectl -t -D DUMP_MODULES
Method 2: use the info module
NOTE: This procedure works in Apache 2 and later, is slightly different in earlier versions
- Enable the server information module:
a2enmod info
- Make sure the following section is commented out in apache2.conf (it could also be in /etc/apache2/mods-enabled/info.conf):
SetHandler server-info Order deny,allow Deny from all Allow from localhost
-
Restart the server:
/etc/init.d/apache2 force-reload
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).
Leave a Reply