Last active
May 9, 2022 07:02
-
-
Save MahefaAbel/beb93dc0117a8f71ea84b2b52a41041b to your computer and use it in GitHub Desktop.
Switch php
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
sudo a2dismod php5.6 | |
sudo a2dismod php7.0 | |
sudo a2enmod php7.2 | |
sudo update-alternatives --set php /usr/bin/php7.2 | |
sudo update-alternatives --set phar /usr/bin/phar7.2 | |
sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.2 | |
# sudo update-alternatives --set phpize /usr/bin/phpize7.2 | |
# sudo update-alternatives --set php-config /usr/bin/php-config7.2 | |
sudo service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment