Issue installing PHP 5.6 on CentOS

4 posts / 0 new
Last post
#1 Thu, 08/10/2017 - 10:29
DoubleSpeed

Issue installing PHP 5.6 on CentOS

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

I'm following the official guide https://www.virtualmin.com/documentation/web/multiplephp 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 * rpmforge: ftp.nluug.nl http://agentrepo.drivesrvr.com/redhat/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'agentrepo.drivesrvr.com'" Trying other mirror. http://mirror.centos.org/centos/6/SCL/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

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 https://bugs.centos.org/view.php?id=10925 seems to relate to this, can anyone advise how I fix this issues so I can install

Fri, 08/11/2017 - 01:31
DoubleSpeed

Can anyone advise/assist with this issue?

Fri, 08/11/2017 - 19:57
Joe
Joe's picture

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 http://agentrepo.drivesrvr.com/redhat/ in your yum repos, you'd want to get rid of it, as it clearly isn't hosting a CentOS SCL mirror.

--

Check out the forum guidelines!

Sat, 08/12/2017 - 02:50
DoubleSpeed

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:

baseurl=http://mirror.centos.org/centos/$releaserver/SCL/$basearch/

add line:

baseurl=http://mirror.centos.org/centos/6/sclo/x86_64/sclo/

Topic locked