How can I downgrade my version of PHP?
Just created a new Fedora VM and it has PHP 5.3 loaded, and I have legacy code that references functions that are now deprecated ( e.g. eregi() ).
How can I downgrade my PHP install from 5.3 to something earlier like 5.2? Installation via YUM would be preferred but if anyone knows of any way I'd like to know how.
Thanks,
I am a hard core Ubuntu user but this is how it goes as far as i remember from my earlier days. Do a "yum search php" and see if the version you are looking for is there. If so un install the older version of php via "yum remove <>' and then install the available version with "yum install <>". I guess this is the only possible way via yum.
I was able to install php 5.3 on Fedora 17 using atomic repo
http://www6.atomicorp.com/channels/atomic/fedora/17/x86_64/RPMS/
You will need to remove php and httpd first
yum remove php
yum remove httpd
Add the following at the end of /etc/yum.conf
exclude=php*5.4*
Install php from atomic repo
wget -q -O - http://www.atomicorp.com/installers/atomic | sh
yum install php