Question
phpmyadmin will not install on CentOS 7. Dependency errors.
I’m trying to install phpmyadmin on CentOS 7 using this guide – https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-with-nginx-on-a-centos-7-server, but it is not working. When I run:
yum install phpmyadmin
I get the following dependency errors:
–> Finished Dependency Resolution
Error: Package: php-tcpdf-6.1.1-1.el6.noarch (epel)
Requires: php-tidy
Error: Package: php-mcrypt-5.3.3-3.el6.x8664 (epel)
Requires: php(api) = 20090626
Installed: php-common-5.4.16-23.el70.3.x8664 (@updates)
php(api) = 20100412-64
Available: php-common-5.4.16-21.el7.x8664 (base)
php(api) = 20100412-64
Available: php-common-5.4.16-23.el70.x8664 (updates)
php(api) = 20100412-64
Available: php-common-5.4.16-23.el70.1.x8664 (updates)
php(api) = 20100412-64
Error: Package: php-mcrypt-5.3.3-3.el6.x8664 (epel)
Requires: php(zend-abi) = 20090626
Installed: php-common-5.4.16-23.el70.3.x8664 (@updates)
php(zend-abi) = 20100525-64
Available: php-common-5.4.16-21.el7.x8664 (base)
php(zend-abi) = 20100525-64
Available: php-common-5.4.16-23.el70.x8664 (updates)
php(zend-abi) = 20100525-64
Available: php-common-5.4.16-23.el70.1.x8664 (updates)
php(zend-abi) = 20100525-64
You could try using –skip-broken to work around the problem
You could try running: rpm -Va –nofiles –nodigest
If I try to install the dependencies, such as php-tidy and php-mcrypt, I get more errors:
yum install php-tidy
“No package php-tidy available”
yum install php-mcrypt
Error: Package: php-mcrypt-5.3.3-3.el6.x8664 (epel)
Requires: php(api) = 20090626
Installed: php-common-5.4.16-23.el70.3.x86_64 (@updates)
php(api) = 20100412-64
yum install php
Package php-5.4.16-23.el70.3.x8664 already installed and latest version
Nothing to do
Any ideas?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×