Centos 6.9安装phpMyAdmin错误

Centos 6.9安装phpMyAdmin错误

我正在尝试安装 phpMyAdmin 并收到此错误

php71w-common 与 php-common-5.4.45-13.el6.remi.x86_64 冲突

这是一些信息

# rpm -qa php\* 
php-bcmath-5.4.45-13.el6.remi.x86_64 
php-php-gettext-1.0.12-1.el6.remi.noarch 
php-xml-5.4.45-13.el6.remi.x86_64 
php-common-5.4.45-13.el6.remi.x86_64 
php-tcpdf-6.2.13-1.el6.remi.noarch 
php-cli-5.4.45-13.el6.remi.x86_64 
php-process-5.4.45-13.el6.remi.x86_64 
php-pecl-apcu-4.0.11-2.el6.remi.5.4.x86_64 
php-gd-5.4.45-13.el6.remi.x86_64 
php-mbstring-5.4.45-13.el6.remi.x86_64 
php-tcpdf-dejavu-sans-fonts-6.2.13-1.el6.remi.noarch 
php-pdo-5.4.45-13.el6.remi.x86_64 
php-tidy-5.4.45-13.el6.remi.x86_64 
php-5.4.45-13.el6.remi.x86_64 
php-mcrypt-5.4.45-13.el6.remi.x86_64 
php-fedora-autoloader-1.0.0-1.el6.remi.noarch

和php版本

# php -v
PHP 5.4.45 (cli) (built: Feb 18 2017 15:55:26) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

谢谢您的帮助


编辑

尝试更新到 PHP 5.6# yum install php55w-pdo-5.5.38-1.w6.x86_64并出现很多错误,因此尝试使用以下命令删除 PHPyum remove php

Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Remove Process
No Match for argument: php
Loading mirror speeds from cached hostfile
 * base: centos.xfree.com.ar
 * epel: mirror.uta.edu.ec
 * extras: centos.xfree.com.ar
 * remi: remi.xpg.com.br
 * remi-safe: remi.xpg.com.br
 * updates: centos.xfree.com.ar
 * webtatic: us-east.repo.webtatic.com
Package(s) php available, but not installed.
No Packages marked for removal

这里说not installed但它已安装

# php -v
PHP 5.5.38 (cli) (built: Feb 18 2017 08:33:29) 
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies

答案1

您正在尝试安装 PHP 7 的软件包,同时安装了 PHP 5。安装相关的 PHP 5 软件包,或将 PHP 安装升级到 PHP 7 以解决冲突。

相关内容