Hello!
Let’s install PHP7 on your ubuntu. This is been tested at Ubuntu 15.10 and work great. We will be using the PPA https://launchpad.net/~ondrej/+archive/ubuntu/php which is updated often and seems the easiest solution 😉
In your console:
sudo apt-get install python-software-properties sudo apt-get install -y language-pack-en-base sudo apt-get autoremove sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php7.0 php7.0-curl php7.0-mysql php7.0-mcrypt php7.0-dev php-apcu php-apcu-bc
Edit the file
/etc/php/7.0/apache2/php.ini
And add to the end of the file
extension=mysqly.so extension=curl.so extension=acpu.so
In same file search and replace
short_open_tag = Off
For
short_open_tag = On
Lastly restart:
sudo service apache2 restart
To test that you are using the correct version:
php -v
Update: If you want to run PHP 5.6. and PHP7 at same time check this blog post.