Downgrading PHP in Ubuntu 10.04
June 22nd, 2010
- Install Apache, Mysql, PostgreSQL as normal.
- Add Karmic repositories in the apt sources file.
- Load Synaptic and refresh the list.
- Find the php common package and from the package menu, click Force Version.
- Choose the Karmic package and press OK.
- Install the package.
- Lock the package.
Repeat these steps for the other PHP modules and related files. I had to do them one at a time, closing Synaptic in between installation due to “broken package” errors.
NOTE: Running apt-get upgrade will ignore your locked packages, make sure you “pin” them in apt as well, or symlink the /etc/apt/preferences to /var/lib/synaptic/preferences (see related post)