I would like to update PHP 7.0.2.6 to the latest 7.2 version on my CentOS 7 server (with DirectAdmin installed) via SSH. I found many procedures on the internet, but none of them seems to work. I was told the procedure should look like this:
- yum install epel-release
- rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
- yum list installed php*
- yum remove php*
- yum install --enablerepo=remi-php72 php php-mcrypt php-cli php-gd php-curl
- php-mysql php-ldap php-zip php-fileinfo
- php -v
I get stuck with step 4, giving the result below. Any thoughts what could be the issue here?
[root@vps ~]# yum list installed php*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ams.edge.kernel.org
 * epel: ams.edge.kernel.org
 * extras: mirror.nforce.com
 * ius: mirror.ehv.weppel.nl
 * remi-php71: remi.mirror.wearetriple.com
 * remi-php72: remi.mirror.wearetriple.com
 * remi-safe: remi.mirror.wearetriple.com
 * updates: centos.mirror.transip.nl
 * webtatic: uk.repo.webtatic.com
Error: No matching Packages to list
Additional information:
[root@vps ~]# dir -A
.bash_history  .custombuild                      .rnd
.bash_logout   epel-release-latest-7.noarch.rpm  setup-ius.sh
.bash_profile  .pki                              .spamassassin
.bashrc        remi-release-7.rpm                .ssh
.cshrc         remi-release-7.rpm.1              .tcshrc
Result step 5:
[root@vps ~]# yum install --enablerepo=remi-php72 php php-mcrypt php-cli php-gd php-curl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                     |  30 kB     00:00
 * base: ams.edge.kernel.org
 * epel: ams.edge.kernel.org
 * extras: mirror.nforce.com
 * ius: mirror.amsiohosting.net
 * remi-php71: remi.mirror.wearetriple.com
 * remi-php72: remi.mirror.wearetriple.com
 * remi-safe: remi.mirror.wearetriple.com
 * updates: centos.mirror.transip.nl
 * webtatic: uk.repo.webtatic.com
base                                                     | 3.6 kB     00:00
extras                                                   | 3.4 kB     00:00
ius                                                      | 2.3 kB     00:00
remi-php71                                               | 3.0 kB     00:00
remi-php72                                               | 3.0 kB     00:00
remi-safe                                                | 3.0 kB     00:00
updates                                                  | 3.4 kB     00:00
webtatic                                                 | 3.6 kB     00:00
(1/3): remi-php72/primary_db                               | 209 kB   00:00
(2/3): remi-php71/primary_db                               | 230 kB   00:00
(3/3): remi-safe/primary_db                                | 1.4 MB   00:00
No package php available.
No package php-mcrypt available.
No package php-cli available.
No package php-gd available.
No package php-curl available.
Error: Nothing to do