Server Fault is a question and answer site for system and network administrators. 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

We run an Ubuntu 12.04 server where php 5.3.10 is installed by default. I thought Ubuntu did only apply bugfixes in their updates, so micros like 5.3.x should pass through.

Apparently, our version isn't updated, but we are stuck with a critical bug in php which is solved in 5.3.15. Should I wait longer for this release to bubble up? Or are there safe repositories to use for Ubuntu to continuously update php and php related packages?

share|improve this question
apt-get upgrade will update all the software package in your system – ZVIK Aug 16 '12 at 10:26
@ZVIK I know how to use apt. The problem is Ubuntu 12.04 is stuck on 5.3.10 ( and I want to install 5.3.15. But I want to do it a) with apt b) use stable releases (no nightlies) and c) a trustworthy repository which supports Ubuntu. – Jurian Sluiman Aug 16 '12 at 10:31

The ubuntu version of php you have installed does not necessarily have the same version number as the upstream bugfix release, even though the ubuntu release have backported the bugfix into its package.

apt-get dist-upgrade should bring you up to date with the latest security patches from the ubuntu repositories. Check out the link below for ubuntu's changelog on bugfixes in this particular package.

share|improve this answer
Thanks @pkhamre, but the bugfix is applied in 5.3.15 (from 19 July 2012) and the 1ubuntu3.2 from 5.3.10 is not updated since 12 June 2012 unfortunately. So Ubuntu hasn't cherry picked the change yet. Is there an option I can notify the maintainer of this fix and in the future a 1ubuntu3.3 will contain the fix for the bug #61045? – Jurian Sluiman Aug 16 '12 at 10:36
I do not know these routines, but check out the following link for some resources like bugreports, mailing lists etc. Maybe you can get some answers there? – pkhamre Aug 16 '12 at 10:39
Related question… – pkhamre Aug 16 '12 at 10:41

You can use apt-pinning to install packages distributed with newer versions of Ubuntu. This Guide is pretty good and should explain all questions:

Comprehensive Debian Guide:

share|improve this answer
This suggestion seems like the cleanest one, IMO. But I'm not sure how the approach based on debian repositories will apply to Ubuntu. – Jim Herrick Feb 21 '13 at 17:21
Here you go with a Version especially for Ubuntu but its not that comprehensive: This Guide is really good with a lot of examples but its written in german: – hub Mar 26 '13 at 8:43

There's a patch on the bug report - you could try applying this to the src package and rebuilding it - but wouldn't it just be simpler to use the 'error_log' config to record the errors elsewhere?

share|improve this answer
This is what we're heading for now, but our wish is to consolidate the nginx errors and php errors into one error file on a server block (Apache-like vhost) base. So we keep track of all server errors per domain we listen to. For now we are using the error_log directive, but what I describe here seems to us a more appropriate solution. – Jurian Sluiman Aug 16 '12 at 11:31

There is some work going on at - but since I use neither nginx nor these experimental versions I can't say anything about the stability or usability of that archive.

Since a workaround is suggested (the error_log directive, which you are using) I'd rather invest in log-mangling scripts to put all your errors in one file than modify existing stable packages. If you feel adventurous you could try Quantal Quetzal (Ubuntu 12.10) which is to go beta next week, the PHP version there is 5.4.6 which includes the fix you want.

share|improve this answer

There are often backports available from more recent Ubuntu releases for the latest server release. For example, this repository seems to have some. Although they don't seen to be updated very recently.

You can of course also just grab the .deb for Quantal and install it on Precise using dpkg -i somepackage.deb, but that is usually not recommended, due to potential changes in dependencies. Although I think in this case you'll be fine.

share|improve this answer

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.