Make PHP 7 run on Apache instead of 5.6 with Scotch Box / Vagrant
I use vagrant,and i use ubuntu as my OS,so i just use apt-get to install the php7...in my experience,you can switch the php version usingļ¼
sudo update-alternatives --query phpsudo update-alternatives --set php /usr/bin/php7
if it didn't work ,you can try this:
sudo a2dismod php5.6sudo a2enmod php7.0