phpswitcher Change PHP version from 7 to 5.6 and vice versa If you want to use the script then go ahead and run it. chmod +x phpswitcher.sh sudo ./phpswitcher.sh