【问题标题】:Configuring apache 2.4 with php 5.6.32 configuring with source in linux在 linux 中使用 php 5.6.32 配置 apache 2.4
【发布时间】:2018-06-11 12:22:04
【问题描述】:

我已经安装了httpd 2.4,下载了.tar.gz并配置为:

./configure --with-apr=/tmp/apr-1.6.3 --with-apr-util=/tmp/apr-util-1.6.1 --enable-so && make && make install (my apr and apr-util are at /tmp location)

我也安装了 php 5.6.32,下载了 tar.gz 并配置为:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --enable-fpm && make && make install

问题是我无法添加 fpm 处理程序,我应该怎么做。

我应该按照redhat developer guide 或apache wiki for FPM 中描述的方式进行吗

提前感谢并纠正我,如果我做错了一些/很多错误:)

【问题讨论】:

  • 您使用的是哪个发行版?
  • CentOs 6.9,可能我已经发现了这个问题,很快就会更新

标签: php-5.6 apache2.4 software-collections


【解决方案1】:

当二进制包存在于各种存储库中时,为什么要尝试从源代码构建?

是的,PHP Configuration Tips 为您提供了使用 FPM 的正确方法(作为 SetHandler 方式中的 Apache wiki)。

链接的操作指南适用于 CentOS 7,但适用于使用 httpd24 软件集合的 CentOS 6。

替代解决方案是使用 3rd 方存储库,例如“remi”,请参阅Wizard 说明。

【讨论】:

  • 能否请您提供一篇源文章以在 FPM 模式下使用 php 5.6 安装 apache 2.4,我尝试搜索,但失败了,谢谢
  • @remi-collect,向导确实很有帮助,我很喜欢它
猜你喜欢
  • 2015-06-02
  • 2016-04-13
  • 2018-07-24
  • 2016-12-19
  • 2014-06-04
  • 2013-01-21
  • 2016-05-18
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多