It's been some time now since the release of PHP 5.3. I can't wait to work with it, but the Ubuntu developers have decided not to include it in the APT repository until 10.04. I don't want to wait that long, it's ridiculous.

What I find strange is that there must be many, many more people who want to install PHP 5.3 on their Ubuntu server as well. Yet I cannot find a package or alternate repository anywhere on the web, only instructions on making your own (which I am not skilled enough to do and is also rather hacky).

Am I looking in the wrong direction, or is there really nothing out there that will let me install the newest PHP with dpkg/apt?

  • If you do make one, then you should host it somewhere (e.g. Launchpad's PPAs), so that others can use it. :) – Rory Dec 18 '09 at 12:57

Probably your best bet is to use the PHP5.3 packages in Debian Experimental.


I can not tell you how different the Debian and Ubuntu packages are, but they should work reasonably well. You might need to recompile them for your Ubuntu release if various libraries require different versions. These packages are what will appear, in some form or another, in Ubuntu 10.04.

You're totally on your own with them though. If your system breaks, you get to keep both bits. You might consider following the mailing list at pkg-php-maint@lists.alioth.debian.org

  • I'm using PHP 5.3 binaries from Debian and they're working fine on Ubuntu Server Jaunty. – Adam Gibbins Oct 19 '09 at 21:07

You can rebuild the Debian PHP5 package for your distribution:

aptitude install devscripts build-essential
# You'll probably need to adjust the path to the .dsc file
dget -u -x http://ftp.de.debian.org/debian/pool/main/p/php5/php5_5.3.0-3.dsc
cd php5*
debuild -us -uc # It may ask for some dependency first
ls ../*.deb
  • apt-get build-dep php5 – andol Dec 18 '09 at 13:10

see my answer here

(Basically, use these packages :) )

Hope it helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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