如何获得使用PHP启用的Apache模块列表

问题描述:

我已经试过这种

<?php

print_r(apache_get_modules());

?>

和得到这个

Fatal error:  Call to undefined function apache_get_modules() in

为什么错误内置的功能,以及如何获得的模块列表

Why the error for built in function and how to get list of modules

借助手册页包含了PHP和Apache的版本支持的详细信息 apache_get_modules()

The manual page contains details about the PHP and Apache version that support apache_get_modules().

您必须运行PHP> = 4.3.2,并使用Apache 2处理器的API或PHP> = 5.0和Apache 1或Apache 2过滤器API。

You must be running PHP >= 4.3.2 and using Apache 2 handler API, or PHP >= 5.0 and Apache 1 or Apache 2 filter API.