LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-02-2007, 03:34 PM   #1
plainusdonuticus
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Rep: Reputation: 0
how do you downgrade php


I wish to downgrade php from 5.1.6 to 5.1.4. I'm currently running FC6 (2.6.18-1.2798.fc6). So far I have used yum to uninstall 5.1.6 and then installed an RPM for php-5.1.2-5.i386 (it was the only rpm I could find under version 5.1.6. I tried restarting httpd service and completely rebooting the system and that still does not work. If I type php -v it tells me I'm still running php 5.1.6 - I'm so confused. Help a newbie out?
 
Old 01-04-2007, 04:21 PM   #2
j_75080
Member
 
Registered: Aug 2003
Location: Richardson, Texas
Distribution: Fedora 14/PC Linux/Tiny Core//TinyMe
Posts: 87

Rep: Reputation: 15
You could download FC5 source rpm for php-5.1.4. It can be found at:

http://rpm.pbone.net/index.php3/stat....i386.rpm.html

Go to a terminal and when logged in as root, rebuild the source rpm for FC6 by using this command:

rpmbuild --rebuild php-5.1.4-1.src.rpm

When the rebuild is finished, copy the rpms to your desktop(or home directory) and install them with:

rpm -Uvh --force php-5.1.4-1.i386.rpm
 
Old 01-04-2007, 04:39 PM   #3
poweredbydodge
Member
 
Registered: Oct 2006
Location: Buffalo, NY
Distribution: Servers: Scientific Linux 5.x // Desktops: Fedora Core (latest)
Posts: 110

Rep: Reputation: 15
yum remove [insert name of old version of php -- the exact name]

if you don't know it, then...

yum remove php

... might work.

when that is done, you can then do...

rpm -ivh php-5.1.2-5.i386.rpm

... to install the 'older' version.

that should work. let us know what happens.
 
Old 01-04-2007, 04:41 PM   #4
plainusdonuticus
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Thats good to know! I'm afraid I must have done this the hardest way possible. I originnaly tried yum install php-5.1.4 but that didn't work even though it said it was successful the system still showed php-5.1.6 running. So I uninstalled 5.1.6 and compiled 5.1.4 from scratch adding a ton of devels along the way. It took forever but it is running 5.1.4 now. Thanks for your suggestion. At least I can try that next time I wish to downgrade.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
downgrade g++ wahaha Linux - Software 8 07-28-2006 02:28 AM
how to downgrade from 9.2 to 9.1 netsurf Suse/Novell 10 04-10-2005 12:44 PM
downgrade kernel zoings Linux - Software 2 11-07-2004 05:46 PM
kernel downgrade Pleun Linux - Newbie 3 12-16-2003 06:09 AM
glibc downgrade InstaGator Linux - Software 0 05-21-2003 02:33 PM


All times are GMT -5. The time now is 05:43 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration