How do I install PHP 7 (PHP next generation) on Ubuntu?
I wanted to install PHP 7 on a clean install of Ubuntu to see what issues I would face.
Here’s the of
On Ubuntu 16
apt-get update
apt-get install php libapache2-mod-php php-mcrypt
this installed php7
I compiled myself php 7 by following this => http://blog.idojo.co/how-to-setup-a-lamp-stack-with-all-the-latest-softwares/ , the instructions were pretty easy, adjust the configure options to your needs, the default configure options worked fine for me on ubuntu server 14.04....
The lamp stack includes, Apache 2.4.18 , MySQL 5.7.10 and PHP 7.0.4
You can use php-build to build and install PHP 7 (and other PHP versions). It can be much easier if you are not familiar with PHP building procedure.