Install php-devel - php

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

Related

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

php-bcmatch installation on php7 running amzon linux os

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.

How to solve phpmyadmin error?

I am trying to install phpmyadmin on my server but I am receiving errors:
Error: php70u-common conflicts with
php-common-5.4.16-36.1.el7_2.1.x86_64
Error: php70u-json conflicts with
php-common-5.4.16-36.1.el7_2.1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I am using Centos 7, have epel installed and when I try to use yum -y install phpmyadmin, I receive the above error. How to resolve this?

Cannot update to php 5.4 - AWS ec2

I was having php5.3 and httpd2.2 on my instance. Now I need to upgrade to php 5.4.
I am following these instructions :
http://codingsteps.com/install-apache-2-4-php-5-4-php-apc-on-amazon-ec2-with-amazon-linux/
I have sudo yum remove all the conflicts and now the remaining two are:
Error: httpd24-tools conflicts with httpd-tools-2.2.29-1.4.amzn1.x86_64
Error: httpd24 conflicts with httpd-2.2.29-1.4.amzn1.x86_64
But if I run for example :
[ec2-user#ip-172-31-44-86 ~]$ sudo yum install -y httpd24 php54
...
--> Finished Dependency Resolution
Error: httpd24-tools conflicts with httpd-tools-2.2.29-1.4.amzn1.x86_64
Error: httpd24 conflicts with httpd-2.2.29-1.4.amzn1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[ec2-user#ip-172-31-44-86 ~]$
EDIT :
I am trying to remove them :
sudo yum remove httpd-tools-2.2.29-1.4.amzn1.x86_64
But I get that :
Loaded plugins: priorities, update-motd, upgrade-helper
No Match for argument: httpd-tools-2.2.29-1.4.amzn1.x86_64
No Packages marked for removal
What should I do?
This might be a day late and a dollar short but this worked for me.
sudo yum remove httpd* php*
sudo yum install httpd24 php54
https://forums.aws.amazon.com/thread.jspa?messageID=465912
You have to remove your old version of httpd prior to installing the new version.
yum remove httpd-tools-2.2.29-1.4.amzn1.x86_64 httpd-2.2.29-1.4.amzn1.x86_64
I had the same problem installing PHP55 devel package.
I've solved uninstalling httpd and PHP again and installing with this command:
sudo yum install -y httpd24 php55 php55-common php55-devel
Note that if you try to install httpd and php, and later php-devel, you get
Error: httpd24-tools conflicts with httpd-tools-2.2.29-1.4.amzn1.x86_64
Error: php55-common conflicts with php-common-5.3.29-1.7.amzn1.x86_64
Error: php55-cli conflicts with php-cli-5.3.29-1.7.amzn1.x86_64
Error: httpd24 conflicts with httpd-2.2.29-1.4.amzn1.x86_64
Error: php55 conflicts with php-5.3.29-1.7.amzn1.x86_64
I hope this solution help you. I found my inspiration in: PHP install on clean Amazon Linux AMI
PD: Sorry about my english

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