Show Apache's Loaded Modules

In this snippet we print out the Apache modules that are running on the server.


<pre>
<?php
print_r
(apache_get_modules());
?>
</pre>

Straightforward, but can be quite a useful little function if you need to know your servers capabilities.

Comments

Doesn't always work

This only works when PHP is installed as an Apache module. This will not function when using PHP as CGI (ex: suPHP).

Interesting

Thanks for the comment.
More info can be found: http://www.php.net/apache_get_modules

Br

Jamie
Making Drupal Mobile

...without PHP:

without PHP from the shell:

apache2 -t -D DUMP_MODULES

Syndicate content