Skip to content

Instantly share code, notes, and snippets.

@franciscohanna92
Created July 25, 2018 13:43
Show Gist options
  • Save franciscohanna92/f8945c9071a3b434693009672cc961b1 to your computer and use it in GitHub Desktop.
Save franciscohanna92/f8945c9071a3b434693009672cc961b1 to your computer and use it in GitHub Desktop.
Switch from php5.6 to php7.2
# change apache's php
a2dismod php5.6
a2enmod php7.2
service apache2 restart
# change system's php
update-alternatives --set php /usr/bin/php7.2
update-alternatives --set phar /usr/bin/phar7.2
update-alternatives --set phar.phar /usr/bin/phar.phar7.2
update-alternatives --set phpize /usr/bin/phpize7.2
update-alternatives --set php-config /usr/bin/php-config7.2
# restart apache to enable changes
service apache2 restart
echo "DONE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment