Php56-general 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 try to install phpmyadmin

$ 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 tried this

 sudo yum install php70-mbstring 

And I also tried this, still encountering the same error.

Any suggestion...?

+8
amazon-web-services amazon-ec2 phpmyadmin
source share
3 answers

I assume you follow the Amazon tutorial to install phpMyAdmin?

I had the same problem today and resolved it by uninstalling PHP 7.0 using the yum command (same as Amazon with "remove" instead of "install":

 sudo yum remove httpd24 php70 mysql56-server php70-mysqlnd 

and PHP 5.6 is installed 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 any dependency problems. Hope this helps :)

+12
source share

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

+8
source share

I had the same problem today. I managed to download phpmyadmin from phpmyadmin.net and follow their instructions. I had another problem while installing phpmyadmin ....

So, this time I reacted to solving this problem with Amazon AMI and decided to install AMI Bitnami LAMP in order to speed up the work. It comes with phpmyadmin setup.

NOTE: Bitnami AMI is running PHP version 5.6.29, so I would say that it is valid to keep track of previous tips and downgrades if your web application does not need PHP 7.0.

+2
source share

All Articles