Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For my webpage at my university I can place files in a directory that can be served by apache. Also at least php is supported.

What I am wondering is, what apache modules are available? E.g. I want to know or I can use wsgi or mod_python.

How can I discover or this modules are enabled? I have access to: all files in my directory (including .htaccess) and the access + error logs. I don't have access to the webserver itself. Is there some easy way I can display all modules in use or other config variables?

share|improve this question
Do you have SSH access, FTP, or ?? – Khaled Jan 24 '11 at 15:35
@Khaled I have access to the files through a shared disk (NFS) – Peter Smit Jan 24 '11 at 17:03
up vote 5 down vote accepted

I would run phpinfo() in a php file to discover what Apache modules are loaded. Create a file with the following line of code:

<?php phpinfo(); ?>

Executing on the server gives tons of information about PHP but also some about Apache:


You can see what modules are loaded in Apache and some other information. You don't get the full configuration file (as that would also be a security problem) but you can get which modules are loaded.

share|improve this answer
Never would have thought of it, but it was so simple. – ajstein Jan 24 '11 at 16:10

There's two ways you can check this

  • Check the apache header (look for the Server Signature) and see which modules are declared (keep in mind not always modules declare themselves)

  • Just try directly to execute code and see what works and what not, not the best way but 100% success rate ;)

share|improve this answer

Your Answer


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.