Last active
February 12, 2024 05:50
-
-
Save jack2jm/27ddedae9e9bfff04124fe7045b2e198 to your computer and use it in GitHub Desktop.
This will help you to change any running php version into ubuntu.
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
1. Call this command | |
updatedb | |
2. Locate php bin file | |
locate bin/php | |
3. check directories | |
ls -l /usr/bin/php | |
4. Remove current php linking into bin dirctory | |
rm /usr/bin/php | |
5. Create link for php version you want to use it (here is need to back to 7.4 - it must be installed) | |
ln -s /usr/bin/php7.4 /usr/bin/php | |
6. Check php version | |
php -v | |
Boom Its Done. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment