2012-08-17 76 views
3

我有服务器安装了CentOS 6.2与雷米回购的Nginx和PHP-FPM的CentOS的mod_fastcgi

的httpd也装了,但是当我尝试安装的mod_fastcgi yum的最高审计机关没有pachage availiable

我怎么能安装???的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 

回答

-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. 
+2

mod_fcgid是来自mod_fastcgi的差异包。这个问题涉及到在EPEL AFAIK中没有RPM包的mod_fastcgi。请参阅http://www.apachelounge.com/viewtopic.php?t=4385了解两者之间差异的更多细节。 – shreddd 2012-08-28 20:01:01

7

似乎没有任何官方包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 

我已经测试了轻轻他们,他们对我的工作。

+0

我按照原样使用这些命令时遇到了一些麻烦,但是这个页面有所帮助:http://repoforge.org/use/ 我不得不下载文件,然后使用rpm,而不是使用出于某种原因直接在网址上传输。 – dmaestro12 2015-07-30 16:03:44

+0

对于其他遇到此问题的人,repoforge此后已被[声明为非活动状态](https://wiki.centos.org/AdditionalResources/Repositories/RPMForge),并且“pkgs.repofirge.org”域已被取消。请使用可接受的镜像:http://mirror-status.repoforge.org/ – fyrye 2017-12-12 21:12:56