LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-11-2013, 03:44 PM   #1
techux
Member
 
Registered: Mar 2013
Posts: 56

Rep: Reputation: Disabled
Centos 6 downgrade to php 5,2


Hi guys.

We are running a server with the latest centos which come with php 5.3. The app that is running needs php 5.2.

This box have access from internet, so I was wondering how insecure could be to have php 5.2. Could this be a big security issue?

I was doing some test and it is really difficult to do this workaround and find a repo. seems like atomicorp used to have them, but not any more.

I was reading a little bit and it seems this version is really old and without support.
 
Old 09-11-2013, 04:28 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
if you MUST downgrade php

first uninstall it using yum or rpm
there might be a TON of dependencies , so use caution

then copy the centos.repo for 6.4 and turn it into a 6.3 pointing to "the Vault"
baseurl=http://vault.centos.org/6.3

( CentOS moves the unsupported os's to the vault )
but there is a "README" placeholder
-- to quote it --
Quote:
This directory (and version of CentOS) is depreciated. For normal users,
you should use /6/ and not /6.3/ in your path. Please see this FAQ
concerning the CentOS release scheme:

http://www.centos.org/modules/smartfaq/faq.php?faqid=34

If you know what you are doing, and absolutely want to remain at the 6.3
level, go to http://vault.centos.org/ for packages.

Please keep in mind that 6.0, 6.1, 6.2 and 6.3 no longer gets any updates, nor
any security fix's.
install php from the 6.3 repo from the vault

add an exclude to the /etc/yum.conf so it will not reinstall php
Code:
exclude=php*
this WILL cause a bunch of "Warnings" to pop up in yum and in the logs
so be warned
you will see a lot of warnings

Last edited by John VV; 09-11-2013 at 04:36 PM.
 
Old 09-13-2013, 08:54 AM   #3
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
If you want to downgrade php, follow above post but if you want to use multiple versions of php simultaneously.
http://www.howtoforge.com/how-to-use...g-3-centos-6.3
http://linuxplayer.org/2011/05/intal...-on-one-server
or you can use
phpbrew
for using multiple php versions simultaneously.

Last edited by eklavya; 09-13-2013 at 08:59 AM.
 
Old 09-13-2013, 09:27 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by techux View Post
Hi guys.
We are running a server with the latest centos which come with php 5.3. The app that is running needs php 5.2. This box have access from internet, so I was wondering how insecure could be to have php 5.2. Could this be a big security issue?
Maybe...have you checked the PHP change logs?
Quote:
I was doing some test and it is really difficult to do this workaround and find a repo. seems like atomicorp used to have them, but not any more. I was reading a little bit and it seems this version is really old and without support.
Right..which is why it was upgraded.

I'll also add that you are going down a bad path doing this. You should NEVER, EVER, in my opinion, downgrade services to accommodate old software. All you are doing is making it more difficult to maintain that server, introducing security holes and instability, and letting your programmer off the hook. They should be upgrading their software to make it use current systems. I also find it VERY difficult to believe that something that runs on PHP 5.2 will not run on PHP 5.3...what, exactly, breaks, and how?? How do you KNOW it 'needs 5.2'?? Anything from the error logs?
 
Old 09-18-2013, 03:34 PM   #5
techux
Member
 
Registered: Mar 2013
Posts: 56

Original Poster
Rep: Reputation: Disabled
thanks guys.

the zend optimizer only runs on php 5.2. there is zendGuard for php 5.3. but applications that were encoded for zend optimer cannot run on zend guard (php 5.3)

The "developers" has a new version of the application but it cost a lot of money and the company have to approve it first. we are working on that.

and what about running centos 5.8 or 5.9 and the upgrade to php 5.2? is this a bad idea as well?. thise version dont receive any security updates nor patches, right?
 
Old 09-19-2013, 09:06 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by techux View Post
thanks guys.
the zend optimizer only runs on php 5.2. there is zendGuard for php 5.3. but applications that were encoded for zend optimer cannot run on zend guard (php 5.3) The "developers" has a new version of the application but it cost a lot of money and the company have to approve it first. we are working on that.

and what about running centos 5.8 or 5.9 and the upgrade to php 5.2? is this a bad idea as well?. thise version dont receive any security updates nor patches, right?
ANY time you're using old software/OS, you are inviting trouble. CentOS is freely updated and available, and I believe the 5.9 version is still receiving updates/patches. But, it's still old and will be out of date soon...and you're still having the issue of the old PHP.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 17 PHP 5.3 downgrade Ipolit Fedora 6 05-02-2013 06:33 PM
Downgrade php from 5.3 to 5.1.6 in RHEL 6.2 hrs.blr89 Linux - Server 4 07-09-2012 06:29 AM
Downgrade CentOS 6.2 to 5.7?? peridian Red Hat 2 02-08-2012 01:09 PM
Fedora Core 6 Downgrade PHP 5.1.6 to 4.4.4 Randvegeta Linux - Server 7 02-03-2007 02:51 PM
how do you downgrade php plainusdonuticus Linux - Newbie 3 01-04-2007 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration