如何使用 apt-get 安装 apache 模块

Lor*_*eck 0 apache-2.2

就像这个标题说的,你能用 apt-get 安装 Apache 模块吗?还是我必须找到 .so 文件并手动配置它?我以为我看到有些可以,不知道这是否适用于所有模块。我特别在寻找所有的 php 模块。现在我正在尝试安装 mod_fcgid。有任何想法吗?我相信,我正在运行 Virtualmin 的亚马逊 EC2 微型实例上使用 Ubuntu Server 12.04。

Zor*_*che 6

使用命令apt-cache search {search terms}查找安装包名称。在您的情况下,您可能正在寻找libapache2-mod-fcgid. 您可以使用命令获取有关包的更多详细信息apt-cache show {packagename}

$ apt-cache search mod fcgid
libapache2-mod-fcgid - an alternative module compat with mod_fastcgi
libapache2-mod-fcgid-dbg - debugging symbols for mod_fcgid


$ apt-cache search mod php5
...
libapache2-mod-php5 - server-side, HTML-embedded scripting language (Apache 2 module)
libapache2-mod-php5filter - server-side, HTML-embedded scripting language (apache 2 filter module)
...
Run Code Online (Sandbox Code Playgroud)

作为 Apache 模块的包的名称通常以libapacheN-mod-foo.