Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I just downloaded the development release of Drupal8 for testing purpose. When I try to install it shows the following error:

Your PHP installation is too old. Drupal requires at least PHP 5.3.10.

My current php version is 5.3.8. How do I make update only to php? Or do I need to update mysql also?

share|improve this question

marked as duplicate by Rinzwind, Thomas W., Kevin Bowen, Alvar, Basharat Sialvi May 10 '13 at 3:30

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Please do not cross post with other stackexchange sites. Source code can be found here: php.net/downloads.php –  Rinzwind May 10 '13 at 1:12
    
Why not update everything with sudo apt-get update && sudo apt-get upgrade ? –  Alvar May 10 '13 at 1:16
    
I'm using ubuntu 12.04 with xampp –  pown May 10 '13 at 1:18
    
@alvar: I tried that but no luck, still having same 5.3.8 –  pown May 10 '13 at 1:18
    
@Rinzwind: I also tried the link you mentioned, no luck yet. It took almost 1hr and the xampp php version is still 5.3.8. –  pown May 10 '13 at 3:08

1 Answer 1

up vote 1 down vote accepted

You could use a ppa to stay up-to-date with php.

 sudo apt-get install python-software-properties
 sudo add-apt-repository ppa:ondrej/php5
 sudo apt-get update
 sudo apt-get upgrade

How do I install latest PHP in supported Ubuntu versions (like 5.4.x in Ubuntu 12.04)?

share|improve this answer
    
I did everything as mentioned, after all the update and upgrade I'm getting same old PHP Version 5.3.8 as phpinfo output –  pown May 10 '13 at 1:45
    
@pown sudo apt-get install php5 –  Qasim May 10 '13 at 1:48
    
I already have php5, just I need upgrade. Should I need to do apt-install again?? –  pown May 10 '13 at 1:50
    
sudo apt-get remove php then install it again –  Qasim May 10 '13 at 1:53
    
check there links mellzamora.com/… <> serverfault.com/questions/420286/… all the same –  Qasim May 10 '13 at 1:56

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