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

I dont want to build from source and was looking to find some repository where I can simply do an apt-get install php5 and get the latest version. Does anyone know of any reliable source I can use to do the same or is the only option I have to build it myself?

share|improve this question
up vote 4 down vote accepted

There is PPA (Personal Package Archive) repository with PHP 5.3.6 at with installation instructions. As I checked there is amd64 build as well (lucid).

sudo add-apt-repository ppa:bjori/php5
sudo apt-get update

sudo aptitude show php5
Package: php5
State: not installed
Version: 5.3.6-8ubuntu0ppa4~lucid1
Priority: optional
Section: php
Maintainer: Hannes Magnusson <>

sudo aptitude install php5 php5-cli
php -v
PHP 5.3.6-8ubuntu0ppa4~lucid1 (cli) (built: May  5 2011 22:11:21) 
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

Note that you need to enable universe repository for that.

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.