how to change php version in nginx code example
Example 1: switch between php version ubuntu nginx
sudo service nginx restart
sudo service php7.1-fpm or php7.2-fpm restart
Example 2: switch between php version ubuntu nginx
sudo update-alternatives --config php