Link to home
Start Free TrialLog in
Avatar of Goutham
GouthamFlag for India

asked on

error while installing php56 in redhat enterprise linux

Dear Experts

I having rhel7 running wanted to upgrade from php54 to php56, removed php54 and when tried to install php56, I am getting an error hence not able to complete the installation of the php556 packages, attached the error shown, please suggest me how to resolve this, thanks in advance.
error.txt
Avatar of gheist
gheist
Flag of Belgium image

Disable MariaDB repository since you have MySQL already installed.
Avatar of Julian Hansen
Why is your PHP install trying to install MariaDB?
because php-whatever-mysql wants libmysqlclient.so and mariadb version of that obsoletes distro version...
Avatar of Kerem ERSOY
Kerem ERSOY

Hi,

your problem is not the PHP but mariadb vs MySQL conflict. Remove mariadb and go to mysql add their community server repo rpm then install mySQL or let the yum install required modules.

Cheers,
K.
Or remove all communal repositories and install all packages consistently from red hat scl.
Since you are deviating from the vendor distribution of packages, any security or other vulnerabilities in php56 and related package will require you to monitor and make appropriate fixes/adjustments.
Redhat gas a specific distro policy which maintains the major/minor versions of packages they distribute. As security or other issues cone up, redhat releases mini and micro versions that correct the issue.
What feature available in php56 do you need that is unavailable in php54?
Or your upgrade merely to be on the latest PHP version?

If you always want to be current on kernel, packages, a different distribution shoukd be considered I.e. Debian, Ubuntu,.....who upgrade/update to newer versions when available.
Note some issues could exist when a new version deprecates/eliminates a feature/component used in your ir other programs/....pages...
hi arnold,
php56 indeed is vendor package (Red Hat Software Collections)
particular MySQL and MariaDB are external...
The standard version of pho included in redhat enterprise 7 is php5.4 not 5.6. In the redhat channel ..
While one can l Cate an rpm of php5.6  other consequences dealing with maintaing/testing/validated .......

I've not spent tine to compare php5.6 to php5.4 option to see whether it is ...
Some tend to want the newer versions just because it is new...
Avatar of Goutham

ASKER

dear all

mariadb is not installed but still  iam getting this conflict error, please find the attached,  please support to resolve this
mariadb-and-mysql.txt
Avatar of Goutham

ASKER

Dear all

I am getting this conflict error when I try to install rh-php56-php-snmp
please suggest
Nope, snmp needs no mysql
the error in the original tells you that a files from the MariaDB-common.centos package is in conflict with a files that came from package MySQL-server-5.6.10-1.el6.x86_64

can you post rpm -qa
are you mixing RHEL 7 with packages for centos?

What feature that exists in PHP5.6 are you after that does not exist in PHP5.4 that is the default part of the RHEL 7 distro.
Those of us who choose to use RHEL/Centos are after stability and not after the what is newer.

rh-php56 add maria-db, but net-snmp relies on mysql-lib.
Get teh net-snmp that either relies on mariadb.

What is the error that you point to in the attached file?
Avatar of Goutham

ASKER

thanks for the reply, please find the attached out put of rpm-qa and also output of yum install net-snmp

please suggest how fix this conflict also if the Sugarcrm 7.8 application requires  php5.6  does it still required to keep php5.4 I mean we should not remove the php5.4 instead keep it as it as and in additional to install php5.6, please suggest
net-snmp.txt
rpm-qa.txt
SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You have the following packages installed:
MySQL-server-5.6.10-1.el6.x86_64
including other Mysql components.
Do you need MySQL server on this system? If you do, you run into the problem that rh-php56 dependencies require that MariaDB as was pointed out earlier
This is why I keep asking what feature does php56 have that you need to upgrade to it.

If you must, you must uninstall MySQL-server, install php56, then try installing mysql-server which may run the same issue, or transition your DB To MariaDB........
Avatar of Goutham

ASKER

thanks for the reply, the requirement of php56 because it is prerequisite package for Sugar 7.8 migration and the requirement of php56 for the following
bcmath
curl
gd
hash
imap
JSMin
json
mbstring
mcrypt
openssl
SimpleXML
zip
zlib
Sugar also requires one of the following extensions or settings to provide a source of CSPRNG for random tokens, in order of preference: libsodium extension
please support , thanks in advance.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Goutham

ASKER

HI Arnold, but Sugarcrm does not support MariaDB, will try to install all other php extensions but not net-snmp if this works then fine , if not iam in trouble, any workaround please
Php56 requires files that mariadb package seems to conflict with often, when XML files should be similar.........
You have to install in sequence it is possible that once mariadb is installed, MySQL-server will install without an issue......
OMG nobody digs dependency solver.

DISABLE MARIADB REPOSITORY
































NOW!