Issue installing PHP 5.6 on CentOS

Operating system CentOS Linux 6.9
Webmin version 1.851
Usermin version 1.720
Virtualmin version 5.99

I’m following the official guide to install PHP 5.6 on CentOS, however, I’m getting:

yum install centos-release-scl

Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile

If above article doesn’t help to resolve this issue please open a ticket with Red Hat Support.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: scl. Please verify its path and try again

This article seems to relate to this, can anyone advise how I fix this issues so I can install

Can anyone advise/assist with this issue?

What’s in /etc/yum.repos.d/CentOS-SCLo-scl.repo and /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo?

On my system it’s got baseurl pointing to the CentOS mirror server URL; it’s not a mirrorlist at all, so there would be no opportunity to end up with a broken mirror, AFAICS. If you’ve got in your yum repos, you’d want to get rid of it, as it clearly isn’t hosting a CentOS SCL mirror.

Thank you, Joe, for your reply the solution for me was:

into the directori /etc/yum.repos.d edit file: CentOS-SCL.repo

sudo su
vi CentoOS-SCL.repo

comment line:


add line: