Upgrading to PHP 7.0 on Ubuntu 14

September 22, 2017

I upgraded PHP to version 7.0 on Ubuntu box. Running php -v on shell would show it as version 7.0. But Apache was still using PHP 5.6. I tried various methods to update settings for Apache but nothing worked until I issued following commands:

<br /> sudo a2dismod php5.6<br /> sudo a2enmod php7.0<br /> sudo service apache2 restart<br />

Source: PHP 7.0 (and 5.6) on Ubuntu | LornaJane

© 2017 Amer Khalid