By andrewl85
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.x86_64 (epel) Requires: php(api) = 20090626 Installed: php-common-5.4.16-23.el7_0.3.x86_64 (@updates) php(api) = 20100412-64 Available: php-common-5.4.16-21.el7.x86_64 (base) php(api) = 20100412-64 Available: php-common-5.4.16-23.el7_0.x86_64 (updates) php(api) = 20100412-64 Available: php-common-5.4.16-23.el7_0.1.x86_64 (updates) php(api) = 20100412-64 Error: Package: php-mcrypt-5.3.3-3.el6.x86_64 (epel) Requires: php(zend-abi) = 20090626 Installed: php-common-5.4.16-23.el7_0.3.x86_64 (@updates) php(zend-abi) = 20100525-64 Available: php-common-5.4.16-21.el7.x86_64 (base) php(zend-abi) = 20100525-64 Available: php-common-5.4.16-23.el7_0.x86_64 (updates) php(zend-abi) = 20100525-64 Available: php-common-5.4.16-23.el7_0.1.x86_64 (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.x86_64 (epel) Requires: php(api) = 20090626 Installed: php-common-5.4.16-23.el7_0.3.x86_64 (@updates) php(api) = 20100412-64
yum install php Package php-5.4.16-23.el7_0.3.x86_64 already installed and latest version Nothing to do
Any ideas?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I’d recommend the CentOS plugin protectbase this plugin will help when dealing with multiple 3rd party repos or just EPEL/RPMForge
You can use “yum --disablerepo=[reponame] …” but that’s a single use option if you’d like to protect your system continuously then I’d highly recommend the “protectbase”
“yum install yum-plugins-protectbase”
Then add “protect=1” on the repos you’d want to protect. Aka CentOS-Base And add “protect=0” to epel.repo this should solve most common conflicts when dealing with 3rd party repositories.
I created a more in-depth guide on my blog here Dealing with multiple repositories on CentOS 4/5/6/7
Try to reun there 2 commands, run them as sudo user wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm rpm -ivh epel-release-7-5.noarch.rpm
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.