Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there a command that list all enabled Apache modules?

share|improve this question
add comment

3 Answers

To list apache loaded modules use:

apachectl -M

or:

apachectl -t -D DUMP_MODULES 

or on RHEL,CentoS, Fedora:

httpd -M

For more options man apachectl. All these answeres can be found just by little google search.

share|improve this answer
2  
-M will also work. –  Andrew B Feb 4 '13 at 12:07
1  
I love this comment about google search (found this answer via google) –  Pawelmhm Sep 25 '13 at 19:41
    
The use of server-info is harder to find via google and gives much more details && the ability to give access to the information to people who don't have shell access (eg client, web developpers, project managers, ...) –  Eric DANNIELOU Nov 6 '13 at 12:44
add comment

Also you can use server-info to get info from remote servers

<Location /server-info>
   SetHandler server-info
   Order allow,deny
   Allow from 127.0.0.1 xxx.xxx.xxx.xxx
</Location>

You can get list of all enabled Apache modules at http://your.host.example.com/server-info?list

share|improve this answer
add comment

You need to enable the info module:

sudo ln -s /etc/apache2/mods-available/info.load /etc/apache2/mods-enabled/.
sudo ln -s /etc/apache2/mods-available/info.conf /etc/apache2/mods-enabled/.

After restart:

http://localhost/server-info

will provide a long list of modules, and configuration info.

To view from remote servers, you can change the 'Requires' option in info.conf to allow remote servers to view info.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.