-5

PHP 7 is released, How can i install PHP7 in XAMPP. I am currently using PHP 5.5.30 and my Ubuntu version is 15.10 . Thanks

Dip
  • 15

3 Answers3

4

You can add a ppa with PHP7:

sudo apt-add-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0
oerdnj
  • 7,940
mdd
  • 1,451
0

In the new version lamp-server included php 7. just use the default installation

sudo apt-get install lamp-server

https://www.apachefriends.org/index.html

  • That command would give the following error message: E: Unable to locate package lamp-server. The easiest way to fix your command is sudo apt-get install tasksel && sudo tasksel install lamp-server. – karel Jul 17 '17 at 13:12
-1

As far as I'm aware PHP7 isn't officially included in your version of Ubuntu (not sure about plans for the future) - so you will have to either find some unofficial packages or build your php7 installation yourself.

Jacek
  • 1,911
  • 12
  • 10
  • PHP7 is not officially included i know that. What i mean is to how to update php in xampp which i installed in ubuntu ! – Dip Dec 04 '15 at 15:56
  • You should check that then probably with xampp maintainers - if their installation provides PHP7. Otherwise my answer still stays valid - some unofficial debs or own installation/compilation. – Jacek Dec 04 '15 at 16:10