CentOS mod_fastcgi

a 夏天 提交于 2019-12-04 13:54:39

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.

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

I've successfully used these instructions on Centos.

install mod_fcgid from epel repository

# 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.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!