Created
July 25, 2018 13:43
-
-
Save franciscohanna92/f8945c9071a3b434693009672cc961b1 to your computer and use it in GitHub Desktop.
Switch from php5.6 to php7.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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