skip to Main Content

I try to install PHP 5.6 with

yum install php

I have CentOs 7 but get the follow error:

Error: Package: php-5.6.40-21.el6.remi.x86_64 (remi-php56)
       Requires: httpd-mmn = 20051115
       Installed: httpd-2.4.6-93.el7.centos.x86_64 (@base)
           httpd-mmn = 20120211
           httpd-mmn = 20120211x8664
           httpd-mmn = 20120211-x86-64

Into the options, I follow these steps and not resolve the problem.

yum --enablerepo=remi-php56 install php-cli (and other needed modules)

And you can also enable the repository for future update (as the "remi-php56" is safe and only provides php 5.6 and its extension)

yum-config-manager --enable remi-php56

https://stackoverflow.com/a/32881532/2671354

2

Answers


  1. The capability httpd-mmn = 20051115 is provded by the httpd package in the base repository (reference).

    Either you have disabled base CentOS 6 repository in yum configuration or its .repo definition file at /etc/yum.repos.d/CentOS-Base.repo is missing.

    In the latter case, reinstall the CentOS release package:

    yum reinstall centos-release
    
    Login or Signup to reply.
  2. You are trying to install EL-6 packages on EL-7, this cannot work.

    Fix your repository configuration.

    Also see the wizard instructions

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search