How to downgrade php 5.5 to 5.4 on Ubuntu 13

php5ubuntu-13.04

I'm using kubuntu 13.04
I've used a downgrade script to downgrade php 5.4 to 5.3 earlier, and now I deleted the repo and that script, removed php 5.3 and now when installing again, it's installing php 5.5 not 5.4.

How do I install php 5.4 not 5.5 ?

Best Answer

Sorry i wanted to post this as a comment but dont have enough rep. Anyway i had to do the same and followed these steps, below is the following i did to go back to PHP 5.4

remove your php, apache, etc

sudo apt-get purge apache2 php5 libapache2-mod-php5 # add here your server packages

change repositories to raring (with backup)

sudo sed -i.bak "s/saucy/raring/g" /etc/apt/sources.list

update and install server packages

sudo apt-get update
sudo apt-get install apache2 php5 libapache2-mod-php5 phpmyadmin 

change repositories back to saucy

sudo sed -i "s/raring/saucy/g" /etc/apt/sources.list

ignore all current upgrades (package hold)

sudo apt-mark hold `aptitude -F%p --disable-columns search ~U`
Related Topic