Need to downgrade to php 5.2.x

15 posts / 0 new
Last post
#1 Tue, 08/21/2018 - 03:36
sinmc

Need to downgrade to php 5.2.x

Hello , i'm running a Centos 6 server , with virtualmin 6.03 installed . I have a problem cause probably by myfault i upgraded the server with yum upgrade ( before installing Virtualmin ) , problem is on a domain i have to run vbulletin 3.8.4 , which not work with php 5.3 . So the best solution is to downgrade the php 5.3 to 5.2.x

i have this version of php installed : [quote]PHP 5.3.3 (cli) (built: Mar 22 2017 12:27:09) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies [/quote]

and i have installed these packages

[quote]php-imap-5.3.3-49.el6.x86_64 php-mysql-5.3.3-49.el6.x86_64 php-pear-1.9.4-5.el6.noarch php-mbstring-5.3.3-49.el6.x86_64 php-fpm-5.3.3-49.el6.x86_64 php-xml-5.3.3-49.el6.x86_64 php-gd-5.3.3-49.el6.x86_64 php-cli-5.3.3-49.el6.x86_64 php-pdo-5.3.3-49.el6.x86_64 php-5.3.3-49.el6.x86_64 php-xmlrpc-5.3.3-49.el6.x86_64 php-common-5.3.3-49.el6.x86_64[/quote]

What's the best way to proceed ?

p.S. i have to stop domain and webim while i do ?

Tue, 08/21/2018 - 03:44
thathwamasi

Hello sinmc,

Try installing php5.2 as additional php using additional repository.

Tue, 08/21/2018 - 03:53
sinmc

without uninstalling anything ?

Tue, 08/21/2018 - 04:14
thathwamasi

Hello Sinmc, Yes, without need to uninstall. like adding remi repo and using install command like yum install rh-php52

Tue, 08/21/2018 - 04:45
sinmc

in that repository no loonger exist php 5.2 , i googled around and only link i can find is this one ...

https://alanthing.com/blog/2013/07/11/creating-php-packages-software-col...

are that package ok for me ? (

Tue, 08/21/2018 - 04:53
thathwamasi

Hello Sinmc,

https://www.e2enetworks.com/help/knowledge-base/downgrade-php-version-fr...

Try not to uninstall just add the atomic repo and then use install command it might work Note: do not uninstall just try adding repo and installing

Tue, 08/21/2018 - 05:05
sinmc

if possible , i prefer maintaing both version , using a rh version , in the link i provided last post , you can check if they can be good for my purpose ?

Tue, 08/21/2018 - 06:42
thathwamasi

Sure, it would be fine to keep both version under /opt means additional repo it works well.

Tue, 08/21/2018 - 06:58
sinmc

i can't find a repo with php52 inside ...

Tue, 08/21/2018 - 08:52
andreychek

The trouble is that support for PHP 5.2 ended in 2011.

Any PHP 5.2 installation would be full of security issues, and repositories are responsibly preventing their use :-)

It also looks like that vBulletin version is from 2009, which probably has similar security issues.

If you just need data from that old app, perhaps install an old distro that comes with PHP 5.2 or older in a VM (CentOS 5 comes to mind), grab the data you need, and migrate it to a current app.

Other than that, I can only offer that it's going to be near impossible to have a modern distribution and keep an app that old running, and running safely -- I know no one wants to hear this, but it's likely just time to upgrade vBulletin :-)

Wed, 08/22/2018 - 14:06
sinmc

i resolved my problem i tried installing atomic-php52 package before , but even if installation was ok no new version found on system then i try plesk php panda , who uses atomic php packages to install multiple version , it works at first run ,

now i have php 5.2 ,17 , 5.3.3 and 7.0 installed on system , and i choose to use the 5.2 only on domain where vbullettin runs ..

Wed, 08/22/2018 - 14:18
andreychek

This seems like a bad idea, but we do wish you good luck :-)

Wed, 08/22/2018 - 14:20
Joe
Joe's picture

This is definitely a bad idea. It's literally an invitation to be exploited. Unsupported PHP + unsupported vBulletin = certainty of security holes.

We can't stop anybody from making bad decisions, but we can point out that this is a bad decision, and it will absolutely, without question, result in bad things.

--

Check out the forum guidelines!

Wed, 08/22/2018 - 18:28 (Reply to #13)
Jfro

YUP very bad! We did long time ago such with a vBulletin while Customer refused to update, ended BAD!

So use the data in Database and update but don't set any of that much to old online, even if only for intranet things you should ask yourself can you trust....

But advice is only advice. ;)

The automated scripts looking for that would be very happy to find a box ....

Wed, 08/29/2018 - 10:51
jimdunn

Hey, I noticed that https://www.vbulletin.com/ has a new version that runs on PHP 7...

Topic locked