I was able to install PHP7 on Debian 8, but after I create a new server, the symbolic link in:
/home/example.com/etc/php.ini 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
sh -c ‘echo “deb https://packages.sury.org/php/ $(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
Joe
2
Don’t symlink.
The next version of the nginx module will allow switching (I think). I’m rolling it out today.