I’ve posted on another forum about this but have not gotten a response yet.
So I hope it’s okay to repeat the question here.
Apache2, PHP 5.6.10, FastCGI enabled.
I’m trying to create a list of loaded apache modules, but I’m using FastCGI on a shared host box.
<?php var_dump(apache_get_modules()); ?>
should produce the requisite array, but doesn’t do the the trick.
Fatal error: Call to undefined function apache_get_modules()
Yes, I could use
<?php phpinfo(); ?> to find information manually, but if I’m building a script and I want to find out on-the-fly within a preflight script whether a preferred module is available prior to full installation, I am at a loss.
What’s a reasonable work-around for listing existing apache modules when fast-cgi is enabled?