Topic: Update PHP 5.2 in RHEL 5

Hi, Remi:

I am trying upgrade php (PHP 5.1.6 (cli)) in our RHEL 5 server.  Through google search, I found your website for some solutions. Unfortunately, the steps described in your website seems not working.

(Step 1):  I met success 

# rpm -Uvh http://rpms.famillecollet.com/enterpris … ease-5.rpm

(Step 2):  I met a failure

# yum --enablerepo=remi update php

Transaction Check Error:
  file /etc/my.cnf from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/charsets/README from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/charsets/ascii.xml from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/charsets/cp1250.xml from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/charsets/cp1251.xml from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/czech/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/danish/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/dutch/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/english/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/estonian/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/french/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/german/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/greek/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/italian/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/japanese/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/korean/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/polish/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/portuguese/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/romanian/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/russian/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/serbian/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/slovak/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/spanish/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/swedish/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64
  file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-libs-5.5.13-1.el5.remi.x86_64 conflicts with file from package MySQL-server-enterprise-gpl-5.0.46-0.rhel5.x86_64

Error Summary
-------------

(Step 3). After searching in your website, I found one old page saying that you can upgrade php without upgrading mysql by doing the following:

# yum --enablerepo=remi install mysqlclient16

(Step 4). Then, I repeat (Step 3), but I still got the same error.

How can I proceed? Any help will be highly appreciated.

Re: Update PHP 5.2 in RHEL 5

If you don't want to update mysql, first, you need to install compat-mysql55 (from remi-test)

Else you need to update mysql first.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Update PHP 5.2 in RHEL 5

When I issue the following command, I got the following information. Did I missed something here?

# yum --enablerepo=remi-test install compat.mysql55
Loaded plugins: rhnplugin
epel                                                                                                            | 3.7 kB     00:00
epel/primary_db                                                                                                 | 3.7 MB     00:01
remi-test                                                                                                       | 2.5 kB     00:00
rhel-x86_64-server-5                                                                                            | 1.4 kB     00:00
rhel-x86_64-server-5/primary                                                                                    | 3.9 MB     00:00
rhel-x86_64-server-5                                                                                                                   11391/11391
rhel-x86_64-server-vt-5                                                                                                     | 1.4 kB     00:00
rhel-x86_64-server-vt-5/primary                                                                                             | 112 kB     00:00
rhel-x86_64-server-vt-5                                                                                                                    404/404
rhn-tools-rhel-x86_64-server-5-beta                                                                                         |  871 B     00:00
rhn-tools-rhel-x86_64-server-5-beta/primary                                                                                 |  25 kB     00:00
rhn-tools-rhel-x86_64-server-5-beta                                                                                                        348/348
rpmforge                                                                                                                    | 1.1 kB     00:00
rpmforge/primary                                                                                                            | 3.8 MB     00:04
rpmforge                                                                                                                               10615/10615
Setting up Install Process
No package compat.mysql55 available.
Nothing to do

Re: Update PHP 5.2 in RHEL 5

Remi:

Thank you so much for your help. I did successfully upgrade PHP from 5.1.6 to 5.3.6 in RHEL 5.6 without upgrading mysql. I have summarized the steps that I took, which might be beneficial to other readers. As you can see below, however, I encountered a new problem. If you can provide any suggestion or comment, I should be grateful.

Step 1:
rpm -Uvh http://rpms.famillecollet.com/enterpris … ease-5.rpm
Step 2:
yum --enablerepo=remi-test install compat.mysql55
Step 3:
rpm -ivh http://rpms.famillecollet.com/enterpris … x86_64.rpm
Step 4:
yum --enablerepo=remi update php-\*

Then, PHP has been successfully upgraded, with the following warning:

[root@liang ~]# php -v
Failed loading /usr/local/genome/ZendOptimizer-3.3.9-linux-glibc23-x86_64/data/5_1_x_comp/ZendOptimizer.so:  /usr/local/genome/ZendOptimizer-3.3.9-linux-glibc23-x86_64/data/5_1_x_comp/ZendOptimizer.so: undefined symbol: zend_throw_exception_internal
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/gdchart.so' - /usr/lib64/php/modules/gdchart.so: undefined symbol: php_gd_gdFontMediumBold in Unknown on line 0
PHP 5.3.6 (cli) (built: May 16 2011 19:18:05)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

Re: Update PHP 5.2 in RHEL 5

The basic PHP for web scripting and without upgrading MySQL as well as described later in this document is obsolete and prone to security issues and with the exception of zero argument class constructor functions.