Can't install phpmyadmin

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

Can't install phpmyadmin

Post by 737simpilot » 2017/12/27 09:53:28

I am following this tutorial, but I get all this and it doesn't install. I'm very, very new to Linux. I'm trying to learn CentOS in order to upgrade to a 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

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Can't install phpmyadmin

Post by TrevorH » 2017/12/27 10:11:33

That's because you have replaced the distro php packages with copies from a third party repo called 'webtatic' which we do not support here. You'll need a version of phpmyadmin from them, built against their copy of php to make that work. Maybe they already have one and you just need to exclude the version from EPEL to pick it up - try 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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

737simpilot
Posts: 5
Joined: 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?

pjsr2
Posts: 614
Joined: 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:

Code: Select all

sudo yum install epel-release
After that you can install phpMyAdmin:

Code: Select all

sudo yum 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: 5
Joined: 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 ~]$

I thought this was for IUS installing PHP 7? https://www.digitalocean.com/community/ ... n-centos-7

I ran,

Code: Select all

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

Code: Select all

sudo bash setup-ius.sh

Code: Select all

sudo yum install mod_php70u php70u-cli php70u-mysqlnd

Code: Select all

sudo apachectl restart

What did I do wrong? I'm a Linux noob here.

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: Can't install phpmyadmin

Post by pjsr2 » 2017/12/28 19:27:52

The IUS repository provides newer PHP releases than included in CentOS7. The IUS packages are intended to 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
You cannot install php71 and php70 from IUS simultaneously. If you install php71 from IUS, you have to uninstall php 5.4 packages from CentOS.

SCL provides packages with newer PHP releases that are packed in such a way that they can be installed in 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.

See the explanation on replacement and parallel installation packages on https://ius.io/IUSvsSCL/ .

The phpMyAdmin packages from Epel work fine with the standard CentOS7 php 5.4 packages, as you can see from:
--> Processing Dependency: php-gd >= 5.3.7 for package: phpMyAdmin-4.4.15.10-2.el7.noarch

You do not need to install any newer version of php. So, uninstall any php70 or php71 packages from IUS (if you did already install these) and disable the IUS repo. Then you can install phpMyAdmin from Epel.

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

Re: Can't install phpmyadmin

Post by 737simpilot » 2017/12/28 21:35:01

Well, I already installed php 7 on top of what CentOS already had. So how do I go about fixing this? I want to use PHP 7 as that is what my site uses and I want to test my site in VMware Player with CentOS.

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: Can't install phpmyadmin

Post by pjsr2 » 2017/12/28 23:05:40

Uninstall php-common, carefully noting down what other packages are removed as dependents.
Than install php71u-common and reinstall packages that where removed when removing php-common.

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

Re: Can't install phpmyadmin

Post by 737simpilot » 2017/12/30 01:58:12

I don't know what the commands are to do that. As I said, I'm a Linux noob. I'm just going to reinstall the OS all over again. From this point on, what are all the commands I need to input to get PHP 7 on here without mucking anything up? This is very disconcerting as I would like to move to a VPS and I need to learn how to do all of this.

User avatar
remirepo
Posts: 447
Joined: 2014/09/21 09:07:12
Location: France
Contact:

Re: Can't install phpmyadmin

Post by remirepo » 2017/12/30 05:51:03

Notice: phpMyAdmin 4.4 in EPEL is designed to work with PHP 5.4 in base repository.

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

For PHP, simple instructions => see the Wizard

For phpMyAdmin 4.7, it is in "remi" repository.

Code: Select all

yum --enablerepo=remi install phpMyAdmin
Notice: as "remi" repository overrides some base/epel packages, it isn"t enabled by default, thus you have to check which packages you want to pull from it. phpMyAdmin is a perfect example of the reason why it works this way.
Remi's Repository - Forum - Blog

Post Reply