LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how do you downgrade php (http://www.linuxquestions.org/questions/linux-newbie-8/how-do-you-downgrade-php-515692/)

plainusdonuticus 01-02-2007 03:34 PM

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?

j_75080 01-04-2007 04:21 PM

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

poweredbydodge 01-04-2007 04:39 PM

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.

plainusdonuticus 01-04-2007 04:41 PM

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.


All times are GMT -5. The time now is 12:50 PM.