大网数据广告活动
服务器运维问答

httpd-mmn issue on CentOS 7 when I only have Nginx/php-fpm

· 52CE 我爱测

I am on CentOS 7. When I do a yum update , it shows me this issue: ** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows: php-7.3.4-1.el7.remi.x86_64 has missing requires of httpd-mmn = ('0', '20120211x8664', None)…

问题原文

原帖链接 · Khom Nazid · CC BY-SA 4.0

I am on CentOS 7. When I do a yum update, it shows me this issue:

** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
php-7.3.4-1.el7.remi.x86_64 has missing requires of httpd-mmn = ('0', '20120211x8664', None)

There's no httpd or Apache on my server. The repos I have include:

# yum repolist 
Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
 * base: mirror.cc.columbia.edu
 * epel: epel.mirror.constant.com
 * extras: mirror.cc.columbia.edu
 * remi-php72: mirror.team-cymru.com
 * remi-php73: mirror.team-cymru.com
 * remi-safe: mirror.team-cymru.com
 * updates: mirror.cc.columbia.edu
repo id                                      repo name                                                                        status
base/7/x86_64                                CentOS-7 - Base                                                                  10,019
epel/x86_64                                  Extra Packages for Enterprise Linux 7 - x86_64                                   13,125
extras/7/x86_64                              CentOS-7 - Extras                                                                   387
mariadb                                      MariaDB                                                                              67
nginx/x86_64                                 nginx repo                                                                          150
remi-php72                                   Remi's PHP 7.2 RPM repository for Enterprise Linux 7 - x86_64                       367
remi-php73                                   Remi's PHP 7.3 RPM repository for Enterprise Linux 7 - x86_64                       307
remi-safe                                    Safe Remi's RPM repository for Enterprise Linux 7 - x86_64                        3,188
robert-gcj/x86_64                            Copr repo for gcj owned by robert                                                    16
robert-pdftk/x86_64                          Copr repo for pdftk owned by robert                                                   3
updates/7/x86_64                             CentOS-7 - Updates                                                                1,840
repolist: 29,475

What do I need to do to remove that error during yum update?

已采纳解答

原帖链接 · Michael Hampton · CC BY-SA 4.0

You can remove the package. The package named php is only for Apache installations and is not used for nginx/php-fpm. That package is named php-fpm and it is the one you should have installed.

yum remove php

If you don't already have php-fpm installed, execute this command instead:

yum swap php php-fpm

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-05-01)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。