Why does yum complains about module conflicts dependency issue with php 7.2 & nginx

Solution Verified - Updated -

Issue

  • Not able enable nginx:1.18 on the system due to module conflicting issues -
# dnf module enable nginx:1.18
    Updating Subscription Management repositories.
    Last metadata expiration check: 2:07:19 ago on Mo 16 Aug 2021 11:07:53 CEST.
    Problems in request:
    Modular dependency problems with Defaults:

     Problem: module php:7.2:820181215112050:76554e01-0.x86_64 requires module(nginx:1.14), but none of the providers can be installed
      - module nginx:1.14:820181214004940:9edba152-0.x86_64 conflicts with module(nginx:1.18) provided by nginx:1.18:8040020210526100943:522a0ee4-0.x86_64
      - module nginx:1.18:8040020210526100943:522a0ee4-0.x86_64 conflicts with module(nginx:1.14) provided by nginx:1.14:820181214004940:9edba152-0.x86_64
      - module nginx:1.14:8000020190830002848:f8e95b4e-0.x86_64 conflicts with module(nginx:1.18) provided by nginx:1.18:8040020210526100943:522a0ee4-0.x86_64
      - module nginx:1.18:8040020210526100943:522a0ee4-0.x86_64 conflicts with module(nginx:1.14) provided by nginx:1.14:8000020190830002848:f8e95b4e-0.x86_64
      - conflicting requests

Environment

  • Red Hat Enterprise Linux (RHEL) 8
  • Nginx 1.14
  • Php 7.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content