【问题标题】:CentOS mod_fastcgiCentOS mod_fastcgi
【发布时间】:2012-08-13 20:43:27
【问题描述】:

我的服务器安装了 CentOS 6.2 和来自 remi repos 的 nginx 和 php-fpm

httpd 也安装了,但是当我尝试安装 mod_fastcgi yum sais 时没有可用的包

如何安装 mod_fastcgi???谷歌搜索不同的网站说这个命令

yum install mod_fastcgi

必须安装这个包。但是百胜:

Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * epel: mirror.cogentco.com
 * remi: remi-mirror.dedipower.com
196 packages excluded due to repository priority protections
Setting up Install Process
No package mod_fastcgi available.
Error: Nothing to do

【问题讨论】:

    标签: linux centos mod-fastcgi


    【解决方案1】:

    mod_fastcgi 似乎没有任何官方软件包。 RedHat 似乎更喜欢您使用mod_fcgid,但它缺少一个重要功能,即使用外部 FastCGI 服务器进程(不由 Apache 管理)的能力,例如 PHP-FPM。

    http://www.garron.me/en/linux/apache-mpm-worker-php-fpm-mysql-centos.html,我发现 您可以从 RPMForge/RepoForge 存储库下载非官方的 mod_fastcgi RPM:

    sudo rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
    sudo rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
    sudo yum install mod_fastcgi
    

    我对它们进行了简单的测试,它们对我有用。

    【讨论】:

    • 我在按原样使用命令时遇到了一些问题,但这个页面有帮助:repoforge.org/use 我必须下载文件然后使用 rpm,而不是出于某种原因直接在 url 上使用 rpm。跨度>
    • 对于遇到此问题的其他人,repoforge 已成为 declared inactive 并且 pkgs.repofirge.org 域已被关闭。请使用可接受的镜像:mirror-status.repoforge.org
    【解决方案2】:

    您应该能够从源代码进行安装。尝试按照此处的说明进行操作: http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html

    我已经在 Centos 上成功使用了这些说明。

    【讨论】:

      【解决方案3】:

      从 epel 存储库安装 mod_fcgid

      # yum --enablerepo=epel info mod_fcgid
      Available Packages
      Name       : mod_fcgid
      Arch       : x86_64
      Version    : 2.2
      Release    : 11.el5
      Size       : 58 k
      Repo       : epel
      Summary    : Apache2 module for high-performance server-side scripting
      URL        : http://fastcgi.coremail.cn/
      License    : GPL+
      Description: mod_fcgid is a binary-compatible alternative to the Apache module mod_fastcgi.
                 : mod_fcgid has a new process management strategy, which concentrates on reducing
                 : the number of fastcgi servers, and kicking out corrupt fastcgi servers as soon
                 : as possible.
      

      【讨论】:

      • mod_fcgid 是一个与 mod_fastcgi 不同的包。该问题涉及在 EPEL AFAIK 中没有 RPM 包的 mod_fastcgi。有关两者之间差异的更多详细信息,请参阅apachelounge.com/viewtopic.php?t=4385
      猜你喜欢
      • 2017-11-06
      • 2012-11-16
      • 2012-10-21
      • 1970-01-01
      • 2011-11-06
      • 2016-05-14
      • 2018-02-23
      • 2013-06-25
      • 1970-01-01
      相关资源
      最近更新 更多