Created
July 25, 2018 13:46
-
-
Save franciscohanna92/a48750d2ceb26851906fac9e6aa1b1d6 to your computer and use it in GitHub Desktop.
witch from php7.2 to php5.6
This file contains 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 php7.2 | |
a2enmod php5.6 | |
service apache2 restart | |
# change system's php | |
update-alternatives --set php /usr/bin/php5.6 | |
update-alternatives --set phar /usr/bin/phar5.6 | |
update-alternatives --set phar.phar /usr/bin/phar.phar5.6 | |
update-alternatives --set phpize /usr/bin/phpize5.6 | |
update-alternatives --set php-config /usr/bin/php-config5.6 | |
# 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