Last active
January 22, 2020 20:32
-
-
Save eduardoarandah/25d413bd693740a32f20eb6e691e5427 to your computer and use it in GitHub Desktop.
How to change php version in apache2 and php cli in ubuntu 18
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
# Apache | |
sudo a2dismod php7.1 | |
sudo a2enmod php7.3 | |
sudo service apache2 restart | |
# Command Line | |
sudo update-alternatives --set php /usr/bin/php7.3 | |
sudo update-alternatives --set phar /usr/bin/phar7.3 | |
sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.3 | |
sudo update-alternatives --set phpize /usr/bin/phpize7.3 | |
sudo update-alternatives --set php-config /usr/bin/php-config7.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment