PHP downgrade to 5.3.X

General support questions
Post Reply
pollus
Posts: 5
Joined: 2014/02/20 11:47:58

PHP downgrade to 5.3.X

Post by pollus » 2015/03/24 00:32:13

Hello all,

I have a problem with downgrading php version from php 5.4.16 to 5.3.X.

I was searching in google but did not find any post that was able to help me.

I am running CentOS 7 reason why I need to downgrade is a plugin for nagios that will not run on anything higher than php 5.3.X.

Here is the list of installed packages:

[root@idca-monitoring yum.repos.d]# yum list installed php\*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centoss5.centos.org
* extras: centosr4.centos.org
* ius-archive-source: mirrors.ircam.fr
* rpmforge: archive.cs.uu.nl
* updates: mirror.nsc.liu.se
* webtatic: uk.repo.webtatic.com
Installed Packages
php.x86_64 5.4.16-21.el7 @base
php-cli.x86_64 5.4.16-21.el7 @base
php-common.x86_64 5.4.16-21.el7 @base
php-gd.x86_64 5.4.16-21.el7 @base
php-ldap.x86_64 5.4.16-21.el7 @base
php-mbstring.x86_64 5.4.16-21.el7 @base
php-mysql.x86_64 5.4.16-21.el7 @base
php-odbc.x86_64 5.4.16-21.el7 @base
php-pdo.x86_64 5.4.16-21.el7 @base
php-pear.noarch 1:1.9.4-21.el7 @base
php-process.x86_64 5.4.16-21.el7 @base
php-xml.x86_64 5.4.16-21.el7 @base
php-xmlrpc.x86_64 5.4.16-21.el7 @base

I tried running yum downgrade php\* but this is as far as it brings me.

I tried installing manually but ran into this issue :

[config.log] after ./configure on php-5.3.17

configure:22022: gcc -o conftest -g -O2 -fvisibility=hidden conftest.c

-lrt -lm -ldl -lnsl -lxml2 -lz -lm -ldl 1>&5
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../libxml2.so when searching for -lxml2
/usr/bin/ld: skipping incompatible /lib/libxml2.so when searching for -lxml2
/usr/bin/ld: skipping incompatible /usr/lib/libxml2.so when searching for -lxml2
/usr/bin/ld: cannot find -lxml2
collect2: error: ld returned 1 exit status
configure: failed program was:
#line 22011 "configure"
#include "confdefs.h"


Can anybody help me out here please ?

Thanks !

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: PHP downgrade to 5.3.X

Post by gerald_clark » 2015/03/24 00:57:47

No. If you want PHP 5.3, run CentOS 6. Run it in a VM if necessary.

User avatar
TrevorH
Forum Moderator
Posts: 23876
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: PHP downgrade to 5.3.X

Post by TrevorH » 2015/03/24 01:10:35

You will not find anyone packaging php 5.3.x for CentOS 7. That version of php has gone end of life on php.net so there will be no more fixes for security vulnerabilities. Unless you are running php 5.3 as part of a distribution which includes it and produces its own bug fixes it is no longer safe to run. If you need php 5.3 then CentOS 6 has it (5.3.3) and it is maintained upstream by Redhat and will receive security updates until 2020.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

pollus
Posts: 5
Joined: 2014/02/20 11:47:58

Re: PHP downgrade to 5.3.X

Post by pollus » 2015/03/24 08:38:59

nice one gents. Thank you for your support.

All the best

User avatar
remirepo
Posts: 299
Joined: 2014/09/21 09:07:12
Location: France
Contact:

Re: PHP downgrade to 5.3.X

Post by remirepo » 2015/03/24 08:42:39

If you really need to run PHP 5.3 on C7, here is a simple way:
http://developerblog.redhat.com/2014/12 ... in-docker/
Remi's Repository - Forum - Blog

Post Reply