1

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?

pown
  • 121
  • 6
  • Please do not cross post with other stackexchange sites. Source code can be found here: http://php.net/downloads.php – Rinzwind May 10 '13 at 01:12
  • Why not update everything with sudo apt-get update && sudo apt-get upgrade ? – Alvar May 10 '13 at 01:16
  • I'm using ubuntu 12.04 with xampp – pown May 10 '13 at 01:18
  • @alvar: I tried that but no luck, still having same 5.3.8 – pown May 10 '13 at 01: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 03:08
  • I would use Lamp if I was you. xamp is a piece of software not worth mentioning. – Rinzwind May 10 '13 at 09:17
  • @Rinzwind: well.. I am stuck with xampp rightnow, not willing to change any sooner. So I'm still looking for solution to upgrade php. I really appreciate the help and I'm still looking for help. – pown May 10 '13 at 10:02

1 Answers1

1

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 different (upgrade or downgrade) PHP version in still supported Ubuntu release?

Qasim
  • 22,092
  • 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 01:45
  • @pown sudo apt-get install php5 – Qasim May 10 '13 at 01:48
  • I already have php5, just I need upgrade. Should I need to do apt-install again?? – pown May 10 '13 at 01:50
  • sudo apt-get remove php then install it again – Qasim May 10 '13 at 01:53
  • check there links https://www.mellzamora.com/installing-php5-4-apache2-and-mysql-on-ubuntu-linux/ <> http://serverfault.com/questions/420286/how-do-i-upgrade-from-php-5-3-to-php-5-4-6-in-ubuntu all the same – Qasim May 10 '13 at 01:56