Install Mycrypt on Centos 6.5 - php

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.

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.

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 install a newer version of PHP than what Yum installs?

I have installed PHP by executing the following command:
yum install php
It installs PHP 5.3.3 in my server... but I want to install PHP 5.4. How can I do that?
Saw it on https://webtatic.com/packages/php54/
To install, first you must add the Webtatic EL yum repository information corresponding to your CentOS/RHEL version to yum:
CentOS/RHEL 7.x:
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
CentOS/RHEL 6.x:
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
CentOS/RHEL 5.x:
rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm
Now you can install php by doing:
yum install php54w
yum installs approved versions of packages. The approved version depends on a few things, such as your distribution and whether the package itself has been tested and deemed as working. This testing can sometimes lag well behind the development of the packages. Chances are that the version that you have installed is the latest approved version.
Building PHP isn't manually terribly difficult, so that's probably your best option. Uninstall the version you have from yum and checkout the official instructions on how to clone and build yourself.
Either that or look around for other packages in yum that give you a newer version (see #barbarity's answer).
Reference http://ahmed.amayem.com/replacing-yum-plugin-replace-one-yum-install-package-php-with-another-on-linux-centos-6/
Check available packages
rpm -q php
Installing the webtatic release RPM(For CentOs 6.x)
sudo rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
Check for available packages in other repo
yum info php55w
Trying to update using yum update
sudo yum update php
Updating using yum remove then yum install
yum info php-common
Removing php-common
sudo yum remove php-common
Installing php55w and php55w-common
sudo yum install php55w php55w-common
Now restart your apache server then check the php version.

Update Cent OS packages?

I just Installed Cent OS 6.5 and I am amazed with a few things.
Why the PHP version is only 5.3.3, MySQL 5.1.73, Apache 2.2.15?
If I run the yum commands to update them no updates are found.
Is there a reason the default installation contains so old versions and how to update them to the latest one please?
Running these two commands should install a newer version of the EPEL repo, enabling you to install a newer version of PHP, etc, but you should find the repository which has the versions which you require.
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
Please try below
yum update php*
If you have rpm package then you can use rpm -U option to upgrade existing packages.

Install PHP 5.4.1 in centos6.2

In centos6.2 default is php 5.3.3.
But i want install php 5.4.1.
Can you help me?
How do php5.4.1 install in centos6.2?
Thanks!
rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm
yum install php54w
See this for more info.
you must yum remove php-common that will remove php from your server.
then php -v to make sure there is no php
finally rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm followed by yum install php54w
and ideally you would want to install php54w-fpm too

Categories