I have PHP 5.3.5 on my Ubuntu and I need to have exactly 5.3.8. How can I do such an upgrade?

link|improve this question

feedback

3 Answers

download from php.net and compile. or http://www.dotdeb.org/2011/08/30/php-5-3-8-is-available/

link|improve this answer
feedback

Maybe you should search from some Ubuntu custom repositories which already has latest PHP versions and maybe also PHP beta versions and you can install it from there without the hassle of downloading and compiling it manually.

link|improve this answer
But how do I specify to install the version I need? E.g. now I have 5.3.5, but want 5.3.3? – takeshin Oct 9 '11 at 20:57
what ubuntu version are you using? i386 or amd64? – Nelimitat Media Oct 9 '11 at 21:35
feedback

We first have to resolve two dependencies required for the dotdeb packages. If you are running the amd64 version, you should replace i386 with amd64.

cd /tmp

wget http://us.archive.ubuntu.com/ubuntu/pool/main/k/krb5/libkrb53_1.6.dfsg.4~beta1-5ubuntu2_i386.deb

wget http://us.archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu38_3.8-6ubuntu0.2_i386.deb

sudo dpkg -i *.deb

We'll have to add the dotdeb repository to the APT sources, so we can use their packaged PHP 5.3 and php-fpm:

sudo echo "deb http://php53.dotdeb.org stable all" >> /etc/apt/sources.list

Update apt:

sudo apt-get update

The resulting text should include dotdeb.

Now we'll install PHP (part 1):

sudo apt-get install php5-cli php5-common php5-suhosin
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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