Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php56-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64 when installing phpmyadmin

I have successfully installed php70 and mysql. But when i am trying to install phpmyadmin by

$ sudo yum-config-manager --enable epel

And Then

$ sudo yum install -y phpMyAdmin

It gives me

--> Finished Dependency Resolution
Error: php70-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
Error: php56-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Also after google sometimes i found a solution that try this

sudo yum install php70-mbstring

And i have tried this also, Still facing same error.

Any suggestion...?

like image 953
Sonu Singh Jadoun Avatar asked Mar 01 '17 08:03

Sonu Singh Jadoun


2 Answers

In case you want to keep php7, I found a solution with AWS Amazon experts. Just use : sudo yum install -y php70-mbstring

like image 34
Uriel Shuraki Avatar answered Sep 23 '22 11:09

Uriel Shuraki


I guess that you are following the Amazon tutorial to install phpMyAdmin ?

I had the same problem today and resolved it by uninstall PHP 7.0 with the yum command (the same given by Amazon with 'remove' instead of 'install' :

sudo yum remove httpd24 php70 mysql56-server php70-mysqlnd

and installed PHP 5.6 instead :

sudo yum install httpd24 php56 mysql56-server php56-mysqlnd

I don't know if this is a good solution, but it worked and I could install phpMyAdmin without dependencies problem. I hope it will help :)

like image 88
Eric Avatar answered Sep 22 '22 11:09

Eric