This tutorial will explain how Downgrade PHP version from 5.4 to 5.3 in ubuntu 12.10.
Note:- Use this script with your own risk
Procedure to follow
First you need to download the shell script from here
Once you have php5_4_downgrade_5.3.sh file you need to change the permissions using the following command
sudo chmod 755 php5_4_downgrade_5.3.sh
Now you can run the script using the following command
sudo sh php5_4_downgrade_5.3.sh
Follow the on screen instructions
Via Ubuntu Forums
Incoming search terms:
- ubuntu 12 10 php 5 3
- ubuntu downgrade php 5 4 to 5 3
- downgrade php 5 4 to 5 3 ubuntu
- downgrade php 5 4 to 5 3
- php 5 3 ubuntu 12 10
- ubuntu 12 10 install php 5 3
- ubuntu downgrade php
- install php 5 3 ubuntu 12 10
- ubuntu php 5 3
- install php 5 3 on ubuntu 12 10





Thank a lot fro script!!! You save my life!!!!
[Reply]
You have just saved my day!
[Reply]
+1 thnx.
[Reply]
Hi there! I needed Php 5.3 to get somethings working in my local computer, there are all about my current job, I search and tried a lot of solution but this one was the first and online to get the work done.
THANK YOU VERY MUCH!
[Reply]
Awesome ! thanks
[Reply]
WoooooooW thats awesome !!!
You really made it easy for me after hours of trials and searching !!
Thank You A Million !
[Reply]
Would be nice if you mentioned what the script does? Compile from source? Change sources.list?
[Reply]
This script broke some php dependencies, now i cant install php5-curl.
the message:
Depends: phpapi-20100525
Depends: php5-common (=5.4.6-1ubuntu1.1) but 5.3.10-1ubuntu3 is to be installed
[Reply]
flashpassion Reply:
April 25th, 2013 at 8:09 pm
in /etc/apt/preferences.d/php5_3
just add follow :
Package: php5-curl
Pin: release a=precise
Pin-Priority: 991
Then:
#apt-get update
#apt-get install php5-curl
[Reply]
Just perfect script. Saved my day.
[Reply]
What if I need to upgrade to 5.4 after?
[Reply]
How do I undo what this script did? I have ubuntu 12.10
[Reply]
Hi I am on 13.04 raring, and somehow updated to php5.4.9 now when i run this script it removes and installs the same version again.
I want to downgrade to <5.4, any suggestion would be helpful.
Thanks.
[Reply]