While working on a server on installing php 5.6 on centos 6 OS
I was getting error “Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again”
After googleing around I found this issue is due to https mentioned in the .repo file in /etc/yum.repos.d
[root@host yum.repos.d]# ls -la
total 28
drwxr-xr-x. 2 root root 4096 Oct 28 05:15 .
drwxr-xr-x. 80 root root 4096 Oct 28 05:16 ..
-rw-r–r–. 1 root root 954 Oct 28 05:15 epel.repo
-rw-r–r–. 1 root root 1056 Nov 4 2012 epel-testing.repo
-rw-r–r–. 1 root root 966 Jul 4 2015 webtatic-archive.repo
-rw-r–r–. 1 root root 862 Oct 28 05:15 webtatic.repo
-rw-r–r–. 1 root root 966 Jul 4 2015 webtatic-testing.repo
I checked in all files with .repo extension and an replaced all https with http and all repository started working fine