I am using Ubuntu 10.04. And I want to upgraded my php version. When i am upgrading my PHP version(5.3.2 to 5.3.6) but After every updation Its show PHP version 5.3.2..

Edit:: I have checked "Ubuntu repository", PHP 5.3.6 is not avalable. :(

link|improve this question
This is off-topic for Stack Overflow. Recommending it be moved to Server Fault. – Michael Irigoyen Jul 7 '11 at 20:32
feedback

migrated from stackoverflow.com Aug 13 '11 at 12:13

This question came from our site for professional and enthusiast programmers.

3 Answers

up vote 6 down vote accepted

First add the following lines to the /etc/apt/sources.list.d/php5-ppa.list file using your favourite editor.

deb http://ppa.launchpad.net/nginx/php5/ubuntu maverick main
deb-src http://ppa.launchpad.net/nginx/php5/ubuntu maverick main

Then run the following command to add a key for the newly added repositories:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 00A6F0A3C300EE8C

After that you can update Ubuntu's software and upgrade PHP:

aptitude update
aptitude full-upgrade
link|improve this answer
feedback

check this: http://www.omaroid.com/installing-lamp-with-php-5-3-6-on-ubuntu-11-04-natty-narwhal/

Kev, The part that says: use this repository:

deb http://packages.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all
link|improve this answer
Which part of this linked article answers the OP's question which is about upgrading his PHP installartion. – Kev Aug 13 '11 at 12:13
feedback

Unfortunately I believe you have to install PHP from source in order to get the latest version. You can get the file from php.net, and essentially follow their installation guide from their manual.

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.