使用mod_fcgi安装Apache的httpd24 centos 6.9

时间:2017-12-29 12:59:44

标签: centos6 apache2.4 mod-fastcgi software-collections

我已经在我的centos 6.9中安装了php和apache,用于apache版本2.4和php版本5.6,如下所示:

yum install epel-release
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum install epel-release
yum repolist
yum --enablerepo=extras install centos-release-scl
yum install httpd24
yum install -y libapache2-mod-fastcgi rh-php56-fpm rh-php56 rh-php56-php rh-php56 rh-php56-cli

但是我看不到mod_fcgi.so在/ opt / rh / httpd24 / root / etc / httpd / modules目录中。

因此我从http://httpd.apache.org/download.cgi#mod_fcgid下载了mod_fcgi。

需要一种方法,以便我可以安装现有的apache模块

非常感谢提前

1 个答案:

答案 0 :(得分:1)

使用Software Collection中的 httpd24 ,您已经拥有mod_proxy_fcgi,其他旧模块已被弃用。

我建议你阅读有关此类配置的PHP Configuration Tips(注意,这是为CentOS 7编写的,但是使用httpd24在CentOS 6上运行)