Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

madala's avatar

not able to install php in RHEL

Hi there,

can any one help me with this issues. i was trying to install php and getting this error.

[xxxxxx@xxxxxx ~]$ sudo yum install php70w

Loaded plugins: langpacks, package_upload, product-id, replace, subscription-manager

certificate verify failed

epel/x86_64/metalink |

14 kB 00:00:00

remi-php70 | 2.9

kB 00:00:00

remi-safe | 2.9 kB

00:00:00

https://rhnsat02.xxx.xxx.xxx/pulp/repos/Default_Organization/Library/content/dist/rhel/server/

7/7.1/x86_64/os/repodata/repomd.xml: [Errno 14] curl#60 - "Peer's Certificate issuer is not

recognized."

Trying other mirror.

One of the configured repositories failed (Red Hat Enterprise Linux 7 Server (RPMs)), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this:

 1. Contact the upstream for the repository and get them to fix the problem.


 2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).


 3. Disable the repository, so yum won't use it by default. Yum will then
    just ignore the repository until you permanently enable it again or use
    --enablerepo for temporary usage:


        yum-config-manager --disable rhel-7-server-rpms


 4. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:


        yum-config-manager --save --setopt=rhel-7-server-rpms.skip_if_unavailable=true

failure: repodata/repomd.xml from rhel-7-server-rpms: [Errno 256] No more mirrors to try.

https://rhnsat02.xxx.xxx.xx/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/

7.1/x86_64/os/repodata/repomd.xml: [Errno 14] curl#60 - "Peer's Certificate issuer is not recognized."

0 likes
2 replies
KNietzsche's avatar

this is what I use if I have a previous version already installed.. I assume you have updated your system yum update -y when you got it

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm;
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm;
rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm;
yum --enablerepo=remi update remi-release;
service httpd stop;
yum -y remove php;
yum --enablerepo=remi-php70 install php70-php php70-php-pear php70-php-bcmath php70-php-pecl-jsond-devel php70-php-mysqlnd php70-php-gd php70-php-common php70-php-fpm php70-php-intl php70-php-cli php70-php php70-php-xml php70-php-opcache php70-php-pecl-apcu php70-php-pecl-jsond php70-php-pdo php70-php-gmp php70-php-process php70-php-pecl-imagick php70-php-devel php70-php-mbstring;
service php-fpm stop;
service php70-php-fpm start;
rm /usr/bin/php;
ln -s /usr/bin/php70 /usr/bin/php;
service httpd restart;

and it runs perfectly.. for me on CentOS 741 You can test on Virtual Box or on a Vultr server that you can destroy when test is done for some cents... Let me know if you have an issue

Please or to participate in this conversation.