无法安装 libapache2-mod-fcgid apache mod

fee*_*sar 3 apache ubuntu mod-fcgid

你好,我尝试安装 libapache2-mod-fcgid mod 但总是出现错误。

root@mail:~# sudo apt-get install libapache2-mod-fcgid
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libapache2-mod-fcgid : Depends: apache2.2-common but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

如果没有 fcgid mod 我无法启动 apache 服务器

root@mail:~# service apache2 restart
 * Restarting web server apache2                                         [fail]
 * The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/fcgid.load: Cannot load /usr/lib/apache2/modules/mod_fcgid.so into server: /usr/lib/apache2/modules/mod_fcgid.so: cannot open shared object file: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
Run Code Online (Sandbox Code Playgroud)

阿帕奇版本 2.4

Al *_*ndy 5

这对我有用:2022 年的 Ubuntu 21.10:

sudo apt-get install -y libapache2-mod-fcgid
Run Code Online (Sandbox Code Playgroud)