How to downgrade to PHP 5.2 on Fedora 11

view full story

http://forums.fedoraforum.org – 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? (HowTos)