Change Global (command line) php version (for laravel):

use this command :

sudo update-alternatives --config php

for more see link below :

Change apache PHP version (for projects which you run with apache):

#(old php version)
sudo a2dismod php5 

#(new php version )
sudo a2enmod php7.1 

sudo systemctl restart apache2

Leave a Reply

Your email address will not be published. Required fields are marked *