Topic: about remi php7.2 installation in CentOS 7.5

I install remi php7.2 in centos 7.5 by following instruction:
https://rpms.remirepo.net/wizard/. But not work. I have to use "yum install php72-php".

Here is output for using "yum install php":
# yum-config-manager --enable remi-php72
# yum install php
..
Dependencies Resolved

======================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================
Installing:
php x86_64 5.4.16-45.el7 base 1.4 M
Installing for dependencies:
libzip x86_64 0.10.1-8.el7 base 48 k
php-cli x86_64 5.4.16-45.el7 base 2.7 M
php-common x86_64 5.4.16-45.el7 base 565 k

Transaction Summary
======================================================================================================================================
Install 1 Package (+3 Dependent packages)
Total download size: 4.7 M
Installed size: 17 M
Is this ok [y/d/N]:

I have also run "yum --disablerepo=* --enablerepo=remi-php72 search php", output of this command include many php package from base.

Question is:
1) is "yum install php72-php" right command too?
2) How to make "yum install php" install remi php72-php?
3) Now phpinfo.php cannot display any content and no /etc/php.ini file. What can I do?
# php --version
PHP 7.2.12 (cli) (built: Nov 6 2018 15:26:22) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies


Thanks in advance.

Re: about remi php7.2 installation in CentOS 7.5

Please post full yum output.

If "priorities" plugin is enabled, you have to disable or configure it (as explained by the wizard)

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: about remi php7.2 installation in CentOS 7.5

> 1) is "yum install php72-php" right command too?

Yes if you want multiple versions
No if you want a single version (which seems to be your case)

See Wizard instructions.

>  2) How to make "yum install php" install remi php72-php?

You cannot, php and php72-php are different packages. See the FAQ

3) What can I do?

In short:

yum remove yum-plugin-priorities

Notice: from wizard instructions:

If the priorities plugin is enabled, ensure remi-php72 have higher priority (a lower value) than base and updates
Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: about remi php7.2 installation in CentOS 7.5

Thank Remi. I get it.

The problem is that REMI is not the highest priority. I'll set REMI as higher priority than base.