Hướng dẫn yum install phpmyadmin centos 7 error - yum cài đặt phpmyadmin centos 7 lỗi

Gần đây, chúng tôi đã cập nhật Centos 7 bằng cách sử dụng yum update -y và đăng mà chúng tôi đang phải đối mặt với một số vấn đề.

Bây giờ ngay cả sau khi cố gắng cài đặt phiên bản cũ của PHP56, nó cũng sẽ giống nhau.

Lỗi khi thử cài đặt phpmyadmin trên centos Linux Release 7.7.1908 (Core)

[root@***** install]# yum install phpmyadmin
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.rackspace.com
 * updates: mirror.fileplanet.com
Resolving Dependencies
--> Finished Dependency Resolution
Error: Package: php-pecl-zip-1.18.2-1.el7.remi.5.6.x86_64 (remi-php56)
           Requires: php(api) = 20131106-64
           Installed: php-common-7.4.4~RC1-1.el7.remi.x86_64 (@remi-modular-test)
               php(api) = 20190902-64
           Available: php-common-5.6.40-18.el7.remi.x86_64 (remi-php56)
               php(api) = 20131106-64
           Available: php-common-5.6.40-19.el7.remi.x86_64 (remi-php56)
               php(api) = 20131106-64
Error: Package: php-pecl-zip-1.18.2-1.el7.remi.5.6.x86_64 (remi-php56)
           Requires: php(zend-abi) = 20131226-64

hỏi ngày 23 tháng 3 năm 2020 lúc 9:04Mar 23, 2020 at 9:04

Hướng dẫn yum install phpmyadmin centos 7 error - yum cài đặt phpmyadmin centos 7 lỗi

Đã xác định một giải pháp làm việc phù hợp với vấn đề này, cảm ơn vì TechMint

Vì tôi đã cài đặt php7.4.4rc1, các gói cấp dưới được cho là cài đặt từ cùng một repo và không phải là kho lưu trữ khác nhau, trong trường hợp của tôi Remi-php74 là chính xácremi-php74 is the correct one

Các bước

yum install yum-utils
yum-config-manager --enable remi-php74
yum install php-zip -y
yum install phpMyAdmin -y

Yum-Utils đã cho Yum-Config-Manager dễ dàng định cấu hình Kho lưu trữ Remi mặc định của PHP74 gave yum-config-manager to easily configure default remi repository of php74

Đã trả lời ngày 24 tháng 3 năm 2020 lúc 3:47Mar 24, 2020 at 3:47

Hướng dẫn yum install phpmyadmin centos 7 error - yum cài đặt phpmyadmin centos 7 lỗi

Rsakhalersakhalersakhale

97811 Huy hiệu bạc25 Huy hiệu đồng11 silver badges25 bronze badges

      Installed: php-common-7.4.4~RC1-1.el7.remi.x86_64 (@remi-modular-test)

Tại sao bạn đã cài đặt gói này?

Để được cài đặt thích hợp, vui lòng làm theo hướng dẫn của trình hướng dẫn

BTW, Phpmyadmin mới nhất (5.0.2) yêu cầu ít nhất Php phiên bản 7.1.

Đã trả lời ngày 23 tháng 3 năm 2020 lúc 11:57Mar 23, 2020 at 11:57

Hướng dẫn yum install phpmyadmin centos 7 error - yum cài đặt phpmyadmin centos 7 lỗi

Remi Colletremi ColletRemi Collet

5,8261 Huy hiệu vàng19 Huy hiệu bạc24 Huy hiệu đồng1 gold badge19 silver badges24 bronze badges

2

Câu hỏi hỗ trợ chung

737SimpilotPosts: 5Joined: 2017/12/27 09:48:44Posts: 5Joined: 2017/12/27 09:48:44

Không thể cài đặt phpmyadmin

Tôi đang làm theo hướng dẫn này, nhưng tôi nhận được tất cả những điều này và nó không cài đặt. Tôi rất, rất mới đối với Linux. Tôi đang cố gắng học Centos để nâng cấp lên VPS.

[aaron@localhost ~]$ sudo yum -y install phpmyadmin
Loaded plugins: fastestmirror, langpacks
base | 3.6 kB 00:00
epel/x86_64/metalink | 16 kB 00:00
epel | 4.7 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
(1/7): base/7/x86_64/group_gz | 156 kB 00:01
(2/7): epel/x86_64/group_gz | 266 kB 00:01
(3/7): extras/7/x86_64/primary_db | 145 kB 00:01
(4/7): epel/x86_64/updateinfo | 862 kB 00:05
(5/7): updates/7/x86_64/primary_db | 4.6 MB 00:07
(6/7): base/7/x86_64/primary_db | 5.7 MB 00:10
(7/7): epel/x86_64/primary_db | 6.1 MB 00:12
Determining fastest mirrors
* base: centos.gbeservers.com
* epel: mirrors.tummy.com
* extras: centos.host-engine.com
* updates: mirrordenver.fdcservers.net
Resolving Dependencies
--> Running transaction check
---> Package phpMyAdmin.noarch 0:4.4.15.10-2.el7 will be installed
--> Processing Dependency: php-php-gettext for package: phpMyAdmin-4.4.15.10-2.el7.noarch
--> Processing Dependency: php-tcpdf for package: phpMyAdmin-4.4.15.10-2.el7.noarch
--> Processing Dependency: php-tcpdf-dejavu-sans-fonts for package: phpMyAdmin-4.4.15.10-2.el7.noarch
--> Running transaction check
---> Package php-php-gettext.noarch 0:1.0.12-1.el7 will be installed
---> Package php-tcpdf.noarch 0:6.2.13-1.el7 will be installed
--> Processing Dependency: php-bcmath for package: php-tcpdf-6.2.13-1.el7.noarch
--> Processing Dependency: php-composer(fedora/autoloader) for package: php-tcpdf-6.2.13-1.el7.noarch
--> Processing Dependency: php-posix for package: php-tcpdf-6.2.13-1.el7.noarch
--> Processing Dependency: php-tidy for package: php-tcpdf-6.2.13-1.el7.noarch
---> Package php-tcpdf-dejavu-sans-fonts.noarch 0:6.2.13-1.el7 will be installed
--> Running transaction check
---> Package php-bcmath.x86_64 0:5.4.16-43.el7_4 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-43.el7_4 for package: php-bcmath-5.4.16-43.el7_4.x86_64
---> Package php-fedora-autoloader.noarch 0:1.0.0-1.el7 will be installed
---> Package php-process.x86_64 0:5.4.16-43.el7_4 will be installed
---> Package php-tidy.x86_64 0:5.4.16-7.el7 will be installed
--> Processing Dependency: libtidy-0.99.so.0()(64bit) for package: php-tidy-5.4.16-7.el7.x86_64
--> Running transaction check
---> Package compat-libtidy.x86_64 0:0.99.0-37.20091203.el7 will be installed
---> Package php-common.x86_64 0:5.4.16-43.el7_4 will be installed
--> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-43.el7_4.x86_64
--> Running transaction check
---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed
--> Processing Conflict: php71w-common-7.1.11-1.w7.x86_64 conflicts php-common < 7.1
--> Finished Dependency Resolution
Error: php71w-common conflicts with php-common-5.4.16-43.el7_4.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest


Hướng dẫn yum install phpmyadmin centos 7 error - yum cài đặt phpmyadmin centos 7 lỗi

Trevorhsite Adminposts: 32347Joined: 2009/09/24 10: 40: 56location: Brighton, UKPosts: 32347Joined: 2009/09/24 10:40:56Location: Brighton, UK

Re: Không thể cài đặt phpmyadmin

Postby Trevorh »2017/12/27 10:11:33 by TrevorH » 2017/12/27 10:11:33

Đó là bởi vì bạn đã thay thế các gói PHP phân phối bằng các bản sao từ repo của bên thứ ba có tên là 'Webtatic' mà chúng tôi không hỗ trợ ở đây. Bạn sẽ cần một phiên bản phpmyadmin từ họ, được xây dựng dựa trên bản sao PHP của họ để thực hiện công việc đó. Có thể họ đã có một và bạn chỉ cần loại trừ phiên bản từ Epel để chọn nó -hãy thử yum - -disablerepo = epel \* Cài đặt phpmyadmin \ và xem điều đó có hoạt động không. Nếu không thì bạn sẽ cần hỏi Webtatic hoặc chuyển sang PHP khác từ bản phân phối cơ sở (5.4.16) hoặc SCL hoặc IUS. Không chắc chắn nếu phpmyadmin ở SCL hay IU.yum --disablerepo=epel\* install phpmyadmin\ and see if that works. If it doesn't then you'll need to ask webtatic or switch to a different php from either the base distro (5.4.16) or SCL or IUS. Not sure if phpmyadmin is in SCL or IUS either.


737simpilotPosts: 5Joined: 2017/12/27 09:48:44

Re: Can't install phpmyadmin

Post by 737simpilot » 2017/12/27 16:49:05

I'm at a complete loss here and I think I messed up my install so I'm going to reinstall CentOS in VMware Player. In the meantime, what is the proper method to install LAMP and PHPMyAdmin?


pjsr2Posts: 607Joined: 2014/03/27 20:11:07

Re: Can't install phpmyadmin

Post by pjsr2 » 2017/12/27 17:22:29

There are a number of good repositories that provide packages for CentOS7 for software that is not included in CentOS itself. You can find them listed on https://wiki.centos.org/AdditionalResou ... positories. If you can find a package within one of these repositories, use these. Packages from other repositories do not always play nice with normal CentOS packages (like the webtatic repository you used for installation of some php7 packages).

For phpMyAdmin, a package is available in the Epel repository.

To add the Epel repository to your system, use the following command:

After that you can install phpMyAdmin:

Not sure why you installed php71 previously, but if you want to do that again, install it from the Software Collections (SCL) or from the IUS repository.


737simpilot Posts: 5Joined: 2017/12/27 09:48:44

Re: Can't install phpmyadmin

Post by 737simpilot » 2017/12/28 14:36:42

Well, I am still having the same issue installing PHPMyAdmin.

[aaron@localhost ~]$ sudo yum install phpMyAdmin
[sudo] password for aaron:
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: repo1.dal.innoscale.net
* epel: mirrors.tummy.com
* extras: mirrors.seas.harvard.edu
* ius: dfw.mirror.rackspace.com
* updates: centos.den.host-engine.com
Resolving Dependencies
--> Running transaction check
---> Package phpMyAdmin.noarch 0:4.4.15.10-2.el7 will be installed
--> Processing Dependency: php-gd >= 5.3.7 for package: phpMyAdmin-4.4.15.10-2.el7.noarch
--> Processing Dependency: php-mbstring >= 5.3.7 for package: phpMyAdmin-4.4.15.10-2.el7.noarch
--> Processing Dependency: php-json for package: phpMyAdmin-4.4.15.10-2.el7.noarch
--> Processing Dependency: php-php-gettext for package: phpMyAdmin-4.4.15.10-2.el7.noarch
--> Processing Dependency: php-simplexml for package: phpMyAdmin-4.4.15.10-2.el7.noarch
--> Processing Dependency: php-tcpdf for package: phpMyAdmin-4.4.15.10-2.el7.noarch
--> Processing Dependency: php-tcpdf-dejavu-sans-fonts for package: phpMyAdmin-4.4.15.10-2.el7.noarch
--> Processing Dependency: php-xmlwriter for package: phpMyAdmin-4.4.15.10-2.el7.noarch
--> Running transaction check
---> Package php-php-gettext.noarch 0:1.0.12-1.el7 will be installed
---> Package php-tcpdf.noarch 0:6.2.13-1.el7 will be installed
--> Processing Dependency: php-bcmath for package: php-tcpdf-6.2.13-1.el7.noarch
--> Processing Dependency: php-composer(fedora/autoloader) for package: php-tcpdf-6.2.13-1.el7.noarch
--> Processing Dependency: php-posix for package: php-tcpdf-6.2.13-1.el7.noarch
--> Processing Dependency: php-tidy for package: php-tcpdf-6.2.13-1.el7.noarch
---> Package php-tcpdf-dejavu-sans-fonts.noarch 0:6.2.13-1.el7 will be installed
---> Package php70u-json.x86_64 0:7.0.26-1.ius.centos7 will be installed
---> Package php70u-xml.x86_64 0:7.0.26-1.ius.centos7 will be installed
---> Package php71u-gd.x86_64 0:7.1.12-1.ius.centos7 will be installed
--> Processing Dependency: php-common(x86-64) = 7.1.12-1.ius.centos7 for package: php71u-gd-7.1.12-1.ius.centos7.x86_64
---> Package php71u-mbstring.x86_64 0:7.1.12-1.ius.centos7 will be installed
--> Running transaction check
---> Package php-bcmath.x86_64 0:5.4.16-43.el7_4 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-43.el7_4 for package: php-bcmath-5.4.16-43.el7_4.x86_64
---> Package php-fedora-autoloader.noarch 0:1.0.0-1.el7 will be installed
---> Package php-process.x86_64 0:5.4.16-43.el7_4 will be installed
---> Package php-tidy.x86_64 0:5.4.16-7.el7 will be installed
--> Processing Dependency: libtidy-0.99.so.0()(64bit) for package: php-tidy-5.4.16-7.el7.x86_64
---> Package php71u-common.x86_64 0:7.1.12-1.ius.centos7 will be installed
--> Running transaction check
---> Package compat-libtidy.x86_64 0:0.99.0-37.20091203.el7 will be installed
---> Package php-common.x86_64 0:5.4.16-43.el7_4 will be installed
--> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-43.el7_4.x86_64
--> Running transaction check
---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed
--> Processing Conflict: php70u-common-7.0.26-1.ius.centos7.x86_64 conflicts php-common < 7.0.26
--> Processing Conflict: php71u-common-7.1.12-1.ius.centos7.x86_64 conflicts php-common < 7.1.12-1.ius.centos7
--> Processing Conflict: php71u-common-7.1.12-1.ius.centos7.x86_64 conflicts php-common < 7.1.12-1.ius.centos7
--> Processing Conflict: php71u-common-7.1.12-1.ius.centos7.x86_64 conflicts php70u-common
--> Processing Conflict: php70u-json-7.0.26-1.ius.centos7.x86_64 conflicts php-json < 7.0.26
--> Finished Dependency Resolution
Error: php71u-common conflicts with php-common-5.4.16-43.el7_4.x86_64
Error: php70u-common conflicts with php-common-5.4.16-43.el7_4.x86_64
Error: php70u-json conflicts with php-common-5.4.16-43.el7_4.x86_64
Error: php71u-common conflicts with php70u-common-7.0.26-1.ius.centos7.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[aaron@localhost ~]$

Tôi nghĩ đây là để IUS cài đặt Php 7? https://www.digitalocean.com/community/ ... n-centos-7

Tôi đã chạy,

Mã: Chọn tất cả

cd ~
    curl 'https://setup.ius.io/' -o setup-ius.sh

Mã: Chọn tất cả

sudo yum install mod_php70u php70u-cli php70u-mysqlnd

Tôi đã làm gì sai? Tôi là một linux noob ở đây.


PJSR2Posts: 607Joined: 2014/03/27 20:11:07Posts: 607Joined: 2014/03/27 20:11:07

Re: Không thể cài đặt phpmyadmin

Postby PJSR2 »2017/12/28 19:27:52 by pjsr2 » 2017/12/28 19:27:52

Kho lưu trữ IUS cung cấp các bản phát hành PHP mới hơn so với bao gồm trong Centos7. Các gói IUS nhằm thay thế các gói PHP 5.4 mà Centos cung cấp. Các xung đột sau đây là cố ý, để đảm bảo rằng chỉ có một phiên bản được cài đặt bất cứ lúc nào.replace the php 5.4 packages that CentOS provides. The following conflicts are intentional, to make sure that only one version is installed at any time.

--> Processing Conflict: php70u-common-7.0.26-1.ius.centos7.x86_64 conflicts php-common < 7.0.26
--> Processing Conflict: php71u-common-7.1.12-1.ius.centos7.x86_64 conflicts php-common < 7.1.12-1.ius.centos7
--> Processing Conflict: php71u-common-7.1.12-1.ius.centos7.x86_64 conflicts php-common < 7.1.12-1.ius.centos7
--> Processing Conflict: php71u-common-7.1.12-1.ius.centos7.x86_64 conflicts php70u-common

Bạn không thể cài đặt đồng thời Php71 và Php70 từ IUS. Nếu bạn cài đặt Php71 từ IUS, bạn phải gỡ cài đặt các gói Php 5.4 từ Centos.

SCL cung cấp các gói với các bản phát hành PHP mới hơn được đóng gói theo cách mà chúng có thể được cài đặt song song với các gói Centos7 Php 5.4 và song song với nhau. Có các phiên bản song song đôi khi là cần thiết khi bạn làm việc với các chương trình yêu cầu các phiên bản PHP cụ thể để hoạt động đúng. Tuy nhiên, nó đi kèm với sự phức tạp được thêm vào, vì bạn luôn cần phải biết bạn muốn sử dụng phiên bản nào.parallel with the CentOS7 php 5.4 packages and in parallel with each other. Having parallel versions is sometimes needed when you work with programs that require specific php versions to work properly. However, it comes with added complexity, as you always need to be aware which version you want to use.

Xem giải thích về các gói cài đặt thay thế và song song trên https://ius.io/iusvsscl/.

Các gói phpmyadmin từ Epel hoạt động tốt với các gói Centos7 Php 5.4 tiêu chuẩn, như bạn có thể thấy từ:

-> phụ thuộc xử lý: PHP-GD> = 5.3.7 cho gói: Phpmyadmin-4.4.15.10-2.el7.noarch

Bạn không cần phải cài đặt bất kỳ phiên bản mới hơn của PHP. Vì vậy, gỡ cài đặt bất kỳ gói Php70 hoặc PHP71 nào khỏi IUS (nếu bạn đã cài đặt chúng) và vô hiệu hóa repo IUS. Sau đó, bạn có thể cài đặt phpmyadmin từ Epel.


737SimpilotPosts: 5Joined: 2017/12/27 09:48:44Posts: 5Joined: 2017/12/27 09:48:44

Re: Không thể cài đặt phpmyadmin

Postby PJSR2 »2017/12/28 19:27:52 by 737simpilot » 2017/12/28 21:35:01

Kho lưu trữ IUS cung cấp các bản phát hành PHP mới hơn so với bao gồm trong Centos7. Các gói IUS nhằm thay thế các gói PHP 5.4 mà Centos cung cấp. Các xung đột sau đây là cố ý, để đảm bảo rằng chỉ có một phiên bản được cài đặt bất cứ lúc nào.


pjsr2Posts: 607Joined: 2014/03/27 20:11:07

Re: Không thể cài đặt phpmyadmin

Postby PJSR2 »2017/12/28 19:27:52 by pjsr2 » 2017/12/28 23:05:40

Kho lưu trữ IUS cung cấp các bản phát hành PHP mới hơn so với bao gồm trong Centos7. Các gói IUS nhằm thay thế các gói PHP 5.4 mà Centos cung cấp. Các xung đột sau đây là cố ý, để đảm bảo rằng chỉ có một phiên bản được cài đặt bất cứ lúc nào.
Than install php71u-common and reinstall packages that where removed when removing php-common.


737SimpilotPosts: 5Joined: 2017/12/27 09:48:44Posts: 5Joined: 2017/12/27 09:48:44

Re: Không thể cài đặt phpmyadmin

Postby PJSR2 »2017/12/28 19:27:52 by 737simpilot » 2017/12/30 01:58:12

Kho lưu trữ IUS cung cấp các bản phát hành PHP mới hơn so với bao gồm trong Centos7. Các gói IUS nhằm thay thế các gói PHP 5.4 mà Centos cung cấp. Các xung đột sau đây là cố ý, để đảm bảo rằng chỉ có một phiên bản được cài đặt bất cứ lúc nào.


Hướng dẫn yum install phpmyadmin centos 7 error - yum cài đặt phpmyadmin centos 7 lỗi

remirepoPosts: 442Joined: 2014/09/21 09:07:12Location: France Contact:

Re: Không thể cài đặt phpmyadmin

Postby PJSR2 »2017/12/28 19:27:52 by remirepo » 2017/12/30 05:51:03

Kho lưu trữ IUS cung cấp các bản phát hành PHP mới hơn so với bao gồm trong Centos7. Các gói IUS nhằm thay thế các gói PHP 5.4 mà Centos cung cấp. Các xung đột sau đây là cố ý, để đảm bảo rằng chỉ có một phiên bản được cài đặt bất cứ lúc nào.

To work with more recent PHP version (7.x) you probably need the install more recent phpMyAdmin 4.7

Bạn không thể cài đặt đồng thời Php71 và Php70 từ IUS. Nếu bạn cài đặt Php71 từ IUS, bạn phải gỡ cài đặt các gói Php 5.4 từ Centos.

SCL cung cấp các gói với các bản phát hành PHP mới hơn được đóng gói theo cách mà chúng có thể được cài đặt song song với các gói Centos7 Php 5.4 và song song với nhau. Có các phiên bản song song đôi khi là cần thiết khi bạn làm việc với các chương trình yêu cầu các phiên bản PHP cụ thể để hoạt động đúng. Tuy nhiên, nó đi kèm với sự phức tạp được thêm vào, vì bạn luôn cần phải biết bạn muốn sử dụng phiên bản nào.

Mã: Chọn tất cả

yum --enablerepo=remi install phpMyAdmin

Xem giải thích về các gói cài đặt thay thế và song song trên https://ius.io/iusvsscl/.