Installing PHP 5.3.3/5.3.4/5.3.5 on Ubuntu 10.04

One other problem I faced recently was a very strange Segmantation fault in unit tests which was very difficult to trace.

The problem was fixed by upgrading to PHP 5.3.3.

Unfortunately Ubuntu guys are quite slow of updaing packages so to get PHP 5.3.3 under Ubuntu 10.04 LTS do:

add /etc/apt/sources.list.d/php533.list file with:

deb lucid main 
deb-src lucid main

in it.


apt-get update
apt-get install php5

And you’re done!

If you want to fix apt-get warnings, you need to add they key specified on this page: (look under Technical details about this PPA->the Signing key-what’s this)

This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

11 Responses to Installing PHP 5.3.3/5.3.4/5.3.5 on Ubuntu 10.04

  1. Andrew Cartwright says:

    Thank you sir, you are a legend!
    My encrypted ssl connections have returned, it appears there was a bug with mysqli_ssl_set in 5.3.2.
    I can now stop pulling my hair out, thank you again.

  2. Andre Lon says:

    These steps dont work anymore, however the steps below do work!!

    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

  3. Alfred Nutile says:


  4. Dennis Gray says:

    I got php 5.3.6 installed using the method above but now cannot connect to any WordPress installations on this server. I suspect I have to a later version of mysql too

  5. Bzdashek Zapadlovsky says:

    ppa:bjori still works!

Leave a Reply

Your email address will not be published. Required fields are marked *