Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm seeing info on how to upgrade from a specific version to another, and that is what I want to do (currently 3.3.6), but is there a simple command to do this? I'm a complete ubuntu/linux noob so I have no idea what I'm talking about, I just want to upgrade php because my current version maybe limiting the amount of input elements that I can post to the following page.

share|improve this question

marked as duplicate by Eric Carvalho, Kevin Bowen, Radu Rădeanu, Alvar, RolandiXor Aug 3 '13 at 19:25

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

I see the current Ubuntu version as 5.3.6-13ubuntu3.6. The latest for download from is 5.3.10 - is that what you'd like to upgrade to? – Ken Kinder Feb 29 '12 at 20:43
yes, sorry I should have specified. – jreed121 Feb 29 '12 at 20:48
I think you are probably going to be better off debugging your PHP problems then upgrading. The exception would be that if you identified a bug that is known to be resolved by upgrading. In that case, personally I would compile php. Compiling php is (rather) trivial if you know php well, and know what you want, but if you are new to compiling and new to php, it can be difficult. Perhaps ask about your php problem first. – bodhi.zazen Feb 29 '12 at 21:51
@bodhi.zazen, I've been told that the latest version does fix this issue. -… – jreed121 Feb 29 '12 at 21:55
up vote 7 down vote accepted

It looks as if the problem is still under discussion on your question in stackoverflow, so ...

IMO you have two options:


dot.deb has php packages and I have used them on Ubuntu before.

Add the dot.deb repository

sudo echo "deb stable all" >> /etc/apt/sources.list

Install php5

sudo apt-get update
sudo apt-get install php5-cli php5-common php5-suhosin

compile php

From the precise repository - This may be safer ;)

apt-get install ubuntu-dev-tools
pull-lp-source php5 precise
dpkg-source -x php5_5.3.10-*.dsc
apt-get build-dep php5
cd php5-5.3.10
debuild binary

This second method was pulled from How to update to PHP 5.3.10 in 10.04?

share|improve this answer
thanks, i resolved the issue from the other question but I'm going to upgrade anyways. – jreed121 Mar 1 '12 at 3:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.