如何获取使用php启用的apache模块列表 [英] How to get the list of apache modules enabled with php

查看:23
本文介绍了如何获取使用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

推荐答案

手册页包含有关支持 apache_get_modules() 的 PHP 和 Apache 版本的详细信息.

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.

这篇关于如何获取使用php启用的apache模块列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆