CentOS mod_fastcgi

Sergey picture Sergey · Aug 17, 2012 · Viewed 22.3k times · Source

I have server with installed CentOS 6.2 with nginx and php-fpm from remi repos

httpd also installed, but when I try to install mod_fastcgi yum sais that no pachage availiable

How I can install mod_fastcgi??? Googling different sites says that command

yum install mod_fastcgi

must install this package. But yum sais:

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

Answer

qris picture qris · Jan 28, 2014

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.

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:

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.