How to downgrade to PHP 5.2 on Fedora 11
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2008
    Location
    Entre Rios, Argentina
    Posts
    167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to downgrade to PHP 5.2 on Fedora 11

    Hi there, it's been a long while since I posted here.
    This is for anyone interested in downgrading their version of php in a "yum friendly" way.

    ********************************
    WARNING: This works for me for now, if your system experiences any problem after trying this, it is YOUR RESPONSABILITY not mine.
    I'll try to update this post if I experience any malfunction after a while
    ********************************
    First, remove php, php-cli and php-common
    It took me all the morning to find the way to do this, and tried many ways to solve it, first of all, just in case, add the following option to your yum.conf:

    Code:
    showdupesfromrepos=1
    remember to remove it once you have PHP installed

    Create a new repo files for Leonidas:

    leonidas.repo

    Code:
    [leonidas]
    name=Leonidas 11 - i586
    failovermethod=priority
    #baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
    baseurl=http://mirror.internode.on.net/pub/fedora/linux/releases/11/Everything/i386/os/
    enabled=1
    metadata_expire=7d
    gpgcheck=0
    includepkgs=openssl php-* php-cli php-common readline
    
    [leonidas-update]
    name=Leonidas 11 - i586
    failovermethod=priority
    #baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
    mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f11&arch=i386
    enabled=1
    metadata_expire=7d
    gpgcheck=0
    includepkgs=openssl php-* php-cli php-common readline
    Edit your fedora.repo and fedora-updates.repo files, adding the following line to each repo:


    Code:
    exclude=openssl php-* php-common readline  php-pdo mod_suphp
    This is important so you will be able to update your system normally later (with the proper updates for the packages of fedora 11).

    An older version of libreadline is required, as well as older versions of openssl, in order to install them you will have to do some nasty stuff with rpm

    Download manually the old openssl package, and readline packages, then install them using the following command for each one:
    rpm -ivh --force --excludedocs openssl-0.9.8k-1.fc11.i686.rpm

    then proceed to install php with yum.

    Edit: Sorry I messed up with the title, it should say "on Fedora 12" can anyone change it?
    I'm back... again...

  2. #2
    Join Date
    Jan 2010
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for this post

  3. #3
    Join Date
    Mar 2008
    Location
    Entre Rios, Argentina
    Posts
    167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to downgrade to PHP 5.2 on Fedora 11

    sorry for the bump, but just wanted to confirm that this howto still works for Fedora 13 "Goddard" (as long as the Leonidas repositories are online).



    (again sorry for the bump, just upgraded to Goddard)
    I'm back... again...

  4. #4
    Join Date
    Nov 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to downgrade to PHP 5.2 on Fedora 11

    It works also for fedora 14 x86_64 with some minor changes to the .repo file:

    [leonidas]
    name=Leonidas 11 - x86_64
    failovermethod=priority
    #baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
    baseurl=http://mirrors.adnettelecom.ro/fedora/linux/releases/11/Everything/x86_64/os/
    enabled=1
    metadata_expire=7d
    gpgcheck=0
    includepkgs=openssl php-* php-cli php-common readline

    [leonidas-update]
    name=Leonidas 11 - x86_64
    failovermethod=priority
    #baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
    baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/11/Everything/x86_64/os/
    mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f11&arch=x86_64
    enabled=1
    metadata_expire=7d
    gpgcheck=0
    includepkgs=openssl php-* php-cli php-common readline

    Thank you for the post

  5. #5
    Join Date
    Dec 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to downgrade to PHP 5.2 on Fedora 11

    this link helped me a lot:

    http://mirror.alva.ge/pub/other/php5.2fc12/

    it contains all the packages needed. and i have installed them on Fedora 14 without any problem or any dependencies.

    just delete your PHP 5.3 and install these ones one by one (it will tell you, if you're in wrong order).

    wow! enjoy!

Similar Threads

  1. Downgrade to Amarok 1.4 Fedora 10?
    By RimFrost in forum Using Fedora
    Replies: 2
    Last Post: 2nd March 2009, 03:32 PM
  2. Fedora Kernel downgrade
    By colonal in forum Installation, Upgrades and Live Media
    Replies: 9
    Last Post: 13th June 2008, 09:33 AM
  3. Downgrade Fedora
    By JMO in forum Installation, Upgrades and Live Media
    Replies: 3
    Last Post: 9th June 2008, 03:35 AM
  4. Downgrade Fedora Libraries
    By blueboy4 in forum Using Fedora
    Replies: 4
    Last Post: 6th June 2008, 04:48 AM
  5. Downgrade PHP on Fedora Core 4
    By Luca_000 in forum Using Fedora
    Replies: 2
    Last Post: 21st May 2006, 12:23 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •