Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 am working on a ubuntu 12.04 server edition as a virtual machine. Basically, I want to upgrade the PHP version to the freshly released 5.3.19, but obviously I have absolutely no clue on how to do it.

Using apt-get install php5-cli etc. did not work, since it still gets me 5.3.19.

So, after having quite a look at, i could not find anything helping me out. So I went to and asked ppl there, noone answered. So here are all my hopes, please help!!

If you have any explanations for me, please give them newbie-style. i am a newbie.

share|improve this question
Maybe this article will help you:… – zstolar Apr 6 '14 at 20:27

You don't want to upgrade to the latest release versions upstream. There's a reason for sticking with the ones in the stable, -updates and -security software channels of the repositories.

The version 5.3.10 in Precise is updated for security fixes and bugs. See the package changelog:

php5 (5.3.10-1ubuntu3.4) precise-security; urgency=low


 -- Marc Deslauriers <>  Tue, 11 Sep 2012 11:28:52 -0400

See als this question: "Why don't the Ubuntu repositories have the latest versions of software?"

share|improve this answer
But what IF I do want to do this? Do you know the way to do it? – lukas Dec 17 '12 at 11:58
It's not that I want to know why not to do it, it is exactly how to do it, even if it is a bad idea. – lukas Dec 17 '12 at 12:03
One way, I totally don't recommend is building from upstream source. You can get PHP source from and build it yourself. If you're a 'newbie' as you state yourself, this will be tough but you'll learn a lot. Be sure to understand the downsides of this: no easy uninstall, possibly overwrites files now managed by your package management, no automatic updates, etc. – gertvdijk Dec 17 '12 at 12:18
Another way is finding a PPA providing you updated packages. Easier, better manageable, but totally not good production - as it's from an untrusted source. – gertvdijk Dec 17 '12 at 12:22
@lukas What have you tried from the many results I find on Google using keywords "install php from source ubuntu"? – gertvdijk Dec 17 '12 at 12:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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