简体   繁体   English

无法在php 7.1上安装phpMyAdmin

[英]unable to install phpMyAdmin on php 7.1

I have install php 7.1 on centos 7.2 when I install phpMyAdmin: 我在安装phpMyAdmin时在centos 7.2上安装了php 7.1:

yum -y install phpMyAdmin

failed, happen below: 失败,发生在下面:

Package php71w-common-7.1.8-2.w7.x86_64 is obsoleted by php-common-7.1.9-1.el7.remi.x86_64 which is already installed
--> Running transaction check
---> Package libtidy.x86_64 0:5.4.0-1.el7 will be installed
---> Package phpMyAdmin.noarch 0:4.4.15.10-2.el7 will be installed
--> Processing Dependency: php-zip for package: phpMyAdmin-4.4.15.10-2.el7.noarch
Package php71w-common-7.1.8-2.w7.x86_64 is obsoleted by php-common-7.1.9-1.el7.remi.x86_64 which is already installed
--> Finished Dependency Resolution
Error: Package: phpMyAdmin-4.4.15.10-2.el7.noarch (epel)
           Requires: php-zip
           Available: php-common-5.4.16-42.el7.x86_64 (base)
               php-zip
           Available: php-pecl-zip-1.15.0-1.el7.remi.7.1.x86_64 (remi-php71)
               php-zip = 1:1.15.0-1.el7.remi.7.1
           Available: php-pecl-zip-1.15.1-1.el7.remi.7.1.x86_64 (remi-php71)
               php-zip = 1:1.15.1-1.el7.remi.7.1
           Available: php55w-common-5.5.38-1.w7.x86_64 (webtatic)
               php-zip
           Available: php56w-common-5.6.31-1.w7.x86_64 (webtatic)
               php-zip
           Available: php70w-common-7.0.22-2.w7.x86_64 (webtatic)
               php-zip
           Available: php71w-common-7.1.8-2.w7.x86_64 (webtatic)
               php-zip
           Installed: php-common-7.1.9-1.el7.remi.x86_64 (@remi-php71)
               Not found
           Available: php-common-7.1.8-1.el7.remi.x86_64 (remi-php71)
               Not found
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

I cannot find php-common-5.4, where is php-zip? 我找不到php-common-5.4,哪里是php-zip?

Who can help me? 谁能帮我? Thanks a lot. 非常感谢。

I always prefer installing phpMyAdmin manually - you have more control: 我总是喜欢手动安装phpMyAdmin - 你有更多的控制权:

  1. Go to https://www.phpmyadmin.net/downloads/ and download the latest version 转到https://www.phpmyadmin.net/downloads/并下载最新版本
  2. Uncompress the downloaded archive in /usr/share/phpmyadmin 在/ usr / share / phpmyadmin中解压缩下载的存档
  3. Create an alias within your Apache configuration. 在Apache配置中创建别名。 Something like this: 像这样的东西:
 Alias /phpmyadmin /usr/share/phpmyadmin <Directory /usr/share/phpmyadmin/> AddDefaultCharset UTF-8 Require all granted </Directory> <Directory /usr/share/phpmyadmin/setup/> Require all granted </Directory> <Directory /usr/share/phpmyadmin/libraries/> Require all granted </Directory> <Directory /usr/share/phpmyadmin/setup/lib/> Require all granted </Directory> <Directory /usr/share/phpmyadmin/setup/frames/> Require all granted </Directory> 
  1. Copy config.sample.inc.php to config.inc.php and adjust the settings inside. 将config.sample.inc.php复制到config.inc.php并调整其中的设置。

  2. Login to yoursite.com/phpmyadmin and confirm the installation 登录yoursite.com/phpmyadmin并确认安装

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM