大网数据广告活动
服务器运维问答

How to configure httpd or php-fpm service which version of php to use on Red Hat 7

· 52CE 我爱测

I'm new to Red Hat, because of a problem described here: stackoverflow question I end up with 2 instalation of php 7.1. First I've installed rh-php71 package from Red Hat repo, because I don't have pdo drivers for Microsoft SQL I…

问题原文

原帖链接 · Radu · CC BY-SA 3.0

I'm new to Red Hat, because of a problem described here:stackoverflow question I end up with 2 instalation of php 7.1.

First I've installed rh-php71 package from Red Hat repo, because I don't have pdo drivers for Microsoft SQL I instaled also php7.1 from Remi repo.

Ok, now I want to instruct httpd24 to use the one from remi (located in /opt/remi/php71).

The actual php work in php-fpm mode

How do I achieve that?

Do I have to config something on php-fm service?

已采纳解答

原帖链接 · Remi Collet · CC BY-SA 3.0

First I've installed rh-php71 package from Red Hat repo, because I don't have pdo drivers for Microsoft SQL I instaled also php7.1 from Remi repo.

Indeed, Remi repository provides much more extensions than any other sources.

So, php-fpm service for rh-php71 was rh-php71-php-fpm so I disabled it and install php71-php-fpm from Remi and now it's working :)

Yes, that is the way.

I think I could configure rh-php71-php-fm to work with the php stack from remi repo

No, you cannot.

For memory, everything is described in PHP Configuration tips.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-12-28)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。