【问题标题】:Apache installation with mod_fcgi for httpd24 centos 6.9使用 mod_fcgi 安装 httpd24 centos 6.9 的 Apache
【发布时间】:2018-06-09 22:03:55
【问题描述】:

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

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 模块

在此先感谢

【问题讨论】:

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


    【解决方案1】:

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

    我建议您阅读PHP Configuration Tips 以了解此类配置(注意,这是为 CentOS 7 编写的,但使用 httpd24 在 CentOS 6 上工作)

    【讨论】:

    • 还有一个问题,不知何故我删除了/opt/rh/httpd24,现在,当我安装yum install httpd24时,/opt/rh是空白的,不能运行sudo service httpd24-httpd优雅它说:/etc/init.d/httpd24-httpd:第 50 行:/opt/rh/httpd24/service-environment:没有这样的文件或目录 /etc/init.d/httpd24-httpd:第 127 行:/opt/rh /httpd24/root/usr/sbin/apachectl: No such file or directory [root@01HW559104 yum.repos.d]# service httpd24-httpd start /etc/init.d/httpd24-httpd: line 50: /opt/rh /httpd24/service-environment: 没有这样的文件或目录
    • 重新安装需要的包(yum remove httpd24-runtime; yum install httpd24)
    猜你喜欢
    • 2018-10-08
    • 1970-01-01
    • 2018-03-28
    • 2019-09-19
    • 1970-01-01
    • 2020-08-10
    • 2020-11-24
    • 2019-05-15
    • 2020-08-05
    相关资源
    最近更新 更多