0

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.

lukas
  • 1
  • Maybe this article will help you: http://www.jeffmould.com/2013/10/06/upgrading-from-php-5-3-to-5-x-on-ubuntu-12-04/ – zstolar Apr 06 '14 at 20:27

1 Answers1

2

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?"

gertvdijk
  • 67,947
  • 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
  • The goal for me would then be building it by hand. Is there any link to any helping page that would help me building it? – lukas Dec 17 '12 at 12:26
  • 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
  • Ah, okay - I used the wrong keywords for search, eg. "compiling php" or something. "from source" helps a lot! – lukas Dec 17 '12 at 12:41