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 ?
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
change repositories to raring (with backup)
update and install server packages
change repositories back to saucy
ignore all current upgrades (package hold)
You could download the version you want from the PHP Git repository and compile it manually.
The compilation requirements are:
You can download the 5.4 snapshot as source code from git.php.net: 5.4.22
Here is a guide for installing from source: install php5 from source on linux
Article source: php.net.