LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-19-2011, 05:57 PM   #1
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
php 5.2 on a fedora 14 server


my company has been in the process of migrating several sites it has hosted off of an archaic server onto a newer one with fedora 14

the problem is that fedora 14 has php 5.3 which does not bode well with some of the web scripts that are being migrated (Drupal 5.2, creates quite a few warnings about paramater X should be a reference in function y and ereg() being deprecated)

is there any way to either downgrade php on fedora 14 to 5.2, or preferably install it along side php 5.3 and only using it for those particular web scripts that need it with a .htaccess file?

before you ask or suggest it, no, upgrading the sites to drupal 6 or 7 is not an option, nor is manually re-coding each site to accomodate php5.3
any help would be appreciated, i have tried googling for an answer and haven't had much luck.
 
Old 07-19-2011, 06:44 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
your company is fully aware that in 4 to 5 months fedora 14 hits end of life

RHEL5.6 or 6.1( or cent or SL) would be , by far, way better choices .



as to the older php 5.2
add a exclude option to the fedora 14 yum repo file
and build from source
then in 5 months uninstall yum
you will never need it again .
 
Old 07-20-2011, 12:24 PM   #3
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Original Poster
Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
i realize that about f14, unfortunately we didn't have much choice in the matter as we don't physically own the machine we're just renting the unit, although we do have root access to install software on it we can't change the OS (it's not even physically located in our building) if we have to compile php from source that would be a problem and a last resort, is there any solution that doesn't involve compiling?
 
Old 07-20-2011, 02:54 PM   #4
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by frieza View Post
i realize that about f14, unfortunately we didn't have much choice in the matter as we don't physically own the machine we're just renting the unit, although we do have root access to install software on it we can't change the OS (it's not even physically located in our building) if we have to compile php from source that would be a problem and a last resort, is there any solution that doesn't involve compiling?
You can use Ermine (http://magicErmine.com). On any Linux system that has installed PHP 5.2 use it to create self-contained executable. This executable can be copied to another system without need to drag with it any additional shared libraries - everything will be packaged in.

If you are going to try Ermine before you package PHP have a look here: http://magicermine.com/docs/c_packaging.html
 
Old 07-21-2011, 12:43 AM   #5
sandeep.sp
LQ Newbie
 
Registered: Jul 2011
Posts: 13

Rep: Reputation: Disabled
Hi,

You can remove the existing php 5.3 or retain it if you want and install 5.2 alongside.

I've faced the similar issue before and i fixed it using the Zend's php installer.

Add a zend repository in /etc/yum.repos.d/ and put the url of zend repository in it.

Follow this link and you are done.

http://files.zend.com/help/Zend-Serv...stallation.htm


Regards,
Sandeep Singh
 
Old 07-26-2011, 11:29 AM   #6
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Original Poster
Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
i ended up being able to remove php5.3 and install php 5.2.17 from source
thanks for the replies though
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrade PHP 5.1.6 to PHP 5.2.6 in Fedora core 6 sushant_d84 Linux - Newbie 3 07-16-2008 01:08 PM
php comment problem // and /* on Fedora Core 5 and PHP 5.1.4 shakeel_125 Linux - Server 4 09-29-2006 04:42 AM
php comment problem // and /* on Fedora Core 5 and PHP 5.1.4 shakeel_125 Fedora 4 09-29-2006 02:14 AM
How to get php 4.4.2 and php 5.1.4 running on fedora core 5? markg85 Linux - Software 2 06-18-2006 09:23 AM
php: different mail server from php.ini rayds Programming 0 09-14-2004 03:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:50 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