How do you set PHP7 as the default for Debian / Nginx?

I was able to install PHP7 on Debian 8, but after I create a new server, the symbolic link in:

/home/ is still pointing to php5/php.ini

How do I make it generate the sym link for PHP7 instead of PHP5, when I create a new server?

For anyone using Debian, here’s how you install a different PHP version:

apt-get install apt-transport-https lsb-release ca-certificates

wget -O /etc/apt/trusted.gpg.d/php.gpg>

sh -c ‘echo “deb $(lsb_release -sc) main” > /etc/apt/sources.list.d/php.list’

apt-get update

apt-get install php7.0 php7.0-mysql php7.0-cgi php7.0-cli

Don’t symlink.

The next version of the nginx module will allow switching (I think). I’m rolling it out today.