Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 google.com, i could not find anything helping me out. So I went to linuxquestions.org 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: jeffmould.com/2013/10/06/… –  zstolar Apr 6 at 20:27
add comment

1 Answer

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

  * SECURITY UPDATE: [...]

 -- Marc Deslauriers <marc.deslauriers@ubuntu.com>  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
3  
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 php.net 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
1  
@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
show 2 more comments

Your Answer

 
discard

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.