Topic: Can't update php (CentOS 7. PHP 5.5 -> 7.2)

Hey guys, somebody care to help me to upgrade php 5.5 (CentOs 7 system)?. My knowledge is not big enough and I need some help from people who know well what they are doing.
I followed Wizard instructions but I can't use "Yum install php" because I get the following message back: "No package php available". (after installing the repo and enabling it according to the wizard isntructions).

So to recap, I entered following commands:
yum install dl.fedoraproject. org/pub/epel/epel-release-latest-7.noarch.rpm
yum install rpms.remirepo. net/enterprise/remi-release-7.rpm
yum install yum-utils
yum-config-manager --enable remi-php72
yum update

I see a lot getting updated but not my php.

Thanks in advance

Re: Can't update php (CentOS 7. PHP 5.5 -> 7.2)

Post full yum output, else very hard to help.

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: Can't update php (CentOS 7. PHP 5.5 -> 7.2)

Also, how was installed PHP 5.5 ?

$ which php
$ rpm -qa '*php*'

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: Can't update php (CentOS 7. PHP 5.5 -> 7.2)

[[root@vps47075 ~]# yum-config-manager --enable remi-php72
Geladen plugins: fastestmirror
=============================================================================================================================== repo: remi-php72 ===============================================================================================================================
[remi-php72]
async = True
bandwidth = 0
base_persistdir = /var/lib/yum/repos/x86_64/7
baseurl =
cache = 0
cachedir = /var/cache/yum/x86_64/7/remi-php72
check_config_file_age = True
compare_providers_priority = 80
cost = 1000
deltarpm_metadata_percentage = 100
deltarpm_percentage =
enabled = True
enablegroups = True
exclude =
failovermethod = priority
ftp_disable_epsv = False
gpgcadir = /var/lib/yum/repos/x86_64/7/remi-php72/gpgcadir
gpgcakey =
gpgcheck = True
gpgdir = /var/lib/yum/repos/x86_64/7/remi-php72/gpgdir
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
hdrdir = /var/cache/yum/x86_64/7/remi-php72/headers
http_caching = all
includepkgs =
ip_resolve =
keepalive = True
keepcache = False
mddownloadpolicy = sqlite
mdpolicy = group:small
mediaid =
metadata_expire = 21600
metadata_expire_filter = read-only:present
metalink =
minrate = 0
mirrorlist = /cdn.remirepo. net/enterprise/7/php72/mirror
mirrorlist_expire = 86400
name = Remi's PHP 7.2 RPM repository for Enterprise Linux 7 - x86_64
old_base_cache_dir =
password =
persistdir = /var/lib/yum/repos/x86_64/7/remi-php72
pkgdir = /var/cache/yum/x86_64/7/remi-php72/packages
proxy = False
proxy_dict =
proxy_password =
proxy_username =
repo_gpgcheck = False
retries = 10
skip_if_unavailable = False
ssl_check_cert_permissions = True
sslcacert =
sslclientcert =
sslclientkey =
sslverify = True
throttle = 0
timeout = 30.0
ui_id = remi-php72
ui_repoid_vars = releasever,
   basearch
username =

And after doing Yum Update there is not much to show, it just updated tons of things before I closed my terminal and now I'm not getting that same update output. There was just no php file to be seen anywhere. Also the rest is in Dutch (Dutch output). If this is not enough to spot anything weird then just delete this topic, I will check with some Dutch tech guy who I will give SSH

Re: Can't update php (CentOS 7. PHP 5.5 -> 7.2)

Remi wrote:

Also, how was installed PHP 5.5 ?

$ which php
$ rpm -qa '*php*'

[root@vps47075 ~]# which php
/usr/local/bin/php
[root@vps47075 ~]# rpm -qa '*php*'
[root@vps47075 ~]#


got no output on that one

Re: Can't update php (CentOS 7. PHP 5.5 -> 7.2)

So you have a manually install php from sources.

You can't use "yum update", but have to "yum install php...."
You also have to remove binary in /usr/local

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: Can't update php (CentOS 7. PHP 5.5 -> 7.2)

[root@vps47075 ~]# yum install php
Geladen plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.xtom.nl
 * centos-virt-xen-epel: ams.edge.kernel.org
 * epel: ams.edge.kernel.org
 * extras: ams.edge.kernel.org
 * remi-php72: remi.mirrors.cu.be
 * remi-safe: mirror.serverion.com
 * rpmforge: repoforge.mirror.wearetriple.com
 * updates: ams.edge.kernel.org
remi-php72                                                                                                                                                                                                                                               | 3.0 kB  00:00:00
Geen pakket  php  beschikbaar.
Fout: Niets te doen

"No package php available"

Fout: Niets te doen = Error: nothing to do

Re: Can't update php (CentOS 7. PHP 5.5 -> 7.2)

Obviously something is wrong in your configuration, as php packages are there

Check for "exclude" directives in yum.conf

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: Can't update php (CentOS 7. PHP 5.5 -> 7.2)

Nothing is excluding as far as I can see:

 GNU nano 2.3.1                                                                           Bestand: /etc/yum.conf

[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=bugs.centos org/set_project.php?project_id=23&ref=bugs.centos org/bug_report_page.php?category=yum
distroverpkg=centos-release

If troubleshooting is too difficult like this, I can check with a local person here to see if they can figure it out.