Created
December 1, 2022 15:57
-
-
Save ilmoralito/a366852002232db74c915380fc282af1 to your computer and use it in GitHub Desktop.
switch php versions - ubuntu
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
1. (optional) install some php version: sudo apt -y install php7.4 | |
2. switch php version: sudo update-alternatives --config php | |
2.1. disable current version: sudo a2dismod php7.1 | |
2.2. enable version: sudo a2enmod php7.4 | |
3. restart apache sudo systemctl restart apache2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment