php-bcmatch installation on php7 running amzon linux os - php

I am trying to install php-bcmath on amazon os
sudo yum install php-bcmath
But i got the following error
Finished Dependency Resolution
Error: php70-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 i have tried with sudo yum install php-bcmath --skip-broken but the same error will be returned

It seems you have installed php70 in your system and default php version provided by os is php 5.3
Try this to install bcmath one of below command will work.
sudo yum install php70-php-bcmath
or
sudo yum install php70-bcmath
Hopen this will help.

Related

Cannot install phpMyAdmin Error: php71w-common conflicts with php-common-5.4.16-43.el7_4.1.x86_64

I just installed CentOS 7 and PHP 7.1xx and MySQL but impossible to install phpMyAdmin. I have an error message but no answer on Google yes only one answer but which itself gives me the same error message.
rpm -iUvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y update
yum -y install phpmyadmin
Error: php71w-common conflicts with php-common-5.4.16-43.el7_4.1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I couldn't install it directly by YUM either. As I remember, The problem is using CentOS 7 or php7 (in my case).
But you can solve your problem by access here: https://www.phpmyadmin.net/downloads/
then download any version you want, and config a little (decompress and copy that folder into /var/www/html/, ...), then you can use phpMyAdmin as normal.

How to install php-xml on Ubuntu 16.04?

I have php7.0 installed on Ubuntu 16.04 and I'm trying to install a forum software in apache2, but I get the following error:
In order to function correctly, the PHP XML/DOM extension needs to be available.
I tried to execute
sudo apt-get install php-xml
sudo apt-get install php7.0-xml
but these give me the following error:
php-xml: Depends: php7.1-xml but it is not going to be installed
When I try to install php7.1 from a PPA, I still get issues of dependencies from other PHP modules.
Any ideas how I can get php-xml installed without any dependency issues?
Can you try installing the .deb files manually from here https://launchpad.net/ubuntu/xenial/+package/php-xml

php71 conflict with php70 after disabling php71 repo

I am attempting to install php-zip (PHP 7.0) but am encountering:
Error: php71w-common conflicts with php-common-7.0.23-1.el7.remi.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I've...
disabled all remi-php repos except for remi-php70.
execute sudo yum clean all
execute sudo yum install php-zip, sudo yum install php70-zip as well as sudo yum install php70w-zip.
All result in:
Resolving Dependencies
--> Running transaction check
---> Package php71w-common.x86_64 0:7.1.8-2.w7 will be installed
--> Processing Conflict: php71w-common-7.1.8-2.w7.x86_64 conflicts php-common < 7.1
--> Finished Dependency Resolution
Ah, webtatic was once in use and presented the conflict. I resolved my problem with:
sudo yum-config-manager --disable webtatic webtatic-archive webtatic-testing remi-php54 remi-php71
sudo yum clean all

Install php-devel

I would like to install php-devel on my server(CentOS 6.5).
yum install php-devel
However, I encountered the following error.
Error: php54-cli conflicts with php-cli-5.3.3-40.el6_6.x86_64
Error: php54 conflicts with php-5.3.3-40.el6_6.x86_64
Error: php54-common conflicts with php-common-5.3.3-40.el6_6.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Could you tell me how to solve this problem?
It's because you have to chose between packages 5.4 and 5.3
i'll suggests to do :
yum remove php.*
sudo yum install php53-common php5-devel php5-cli

Install Mycrypt on Centos 6.5

I need to install Mycrypt in order to run php artisan serve on my Centos 6.5. So, I added the EPEL by the following commands
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install php-mcrypt
However, when I run the yum install, the output is like this
Error: php55w-common conflicts with php-common-5.3.3-27.el6_5.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I don't know what to do at this point. Please help. Thank you in advance.
As the error suggests, it's conflicted. Your current install version of PHP differs from the one you're trying to install.
Maybe you're trying to install a 5.3 version against a 5.5. Look to find a matching version.
It's also possible you should to a "yum update" prior to installing the mcrypt RPM.
I found this from: http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
It would help to know what version of PHP you are currently running. The mcrypt on the epel is php-mcrypt-5.3.3-3.el6.x86_64.rpm. Usually you can find out the version by either php -v on the command line, or phpinfo() in one of your scripts.

Categories