Linux CentOS mod_fastcgi
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12005137/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
CentOS mod_fastcgi
提问by Sergey
I have server with installed CentOS 6.2 with nginx and php-fpm from remi repos
我的服务器安装了 CentOS 6.2 和来自 remi repos 的 nginx 和 php-fpm
httpd also installed, but when I try to install mod_fastcgi yum sais that no pachage availiable
httpd 也安装了,但是当我尝试安装 mod_fastcgi 时 yum sais 没有可用的 pachage
How I can install mod_fastcgi??? Googling different sites says that command
我如何安装 mod_fastcgi ???谷歌搜索不同的网站说这个命令
yum install mod_fastcgi
must install this package. But yum sais:
必须安装这个包。但是 yum 说:
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
回答by Stephane Rouberol
install mod_fcgid
from epel repository
mod_fcgid
从 epel 存储库安装
# 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.
回答by shreddd
You should be able to do an install from source. Try following the instructions here: http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html
您应该能够从源代码进行安装。尝试按照此处的说明操作:http: //www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html
I've successfully used these instructions on Centos.
我已经在 Centos 上成功地使用了这些说明。
回答by qris
There don't appear to be any official packages for mod_fastcgi
. It seems that RedHat would prefer that you use mod_fcgid
, but it's missing an important feature, the ability to use an external FastCGI server process (not managed by Apache) such as PHP-FPM.
似乎没有任何官方软件包mod_fastcgi
。RedHat 似乎更喜欢您使用mod_fcgid
,但它缺少一个重要功能,即使用外部 FastCGI 服务器进程(不由 Apache 管理)的能力,例如 PHP-FPM。
From http://www.garron.me/en/linux/apache-mpm-worker-php-fpm-mysql-centos.html, I found that
you can download unofficial mod_fastcgi
RPMs from the RPMForge/RepoForge repository:
从http://www.garron.me/en/linux/apache-mpm-worker-php-fpm-mysql-centos.html,我发现您可以mod_fastcgi
从 RPMForge/RepoForge 存储库下载非官方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
I have tested them lightly and they work for me.
我已经对它们进行了轻微的测试,它们对我有用。