Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jack2jm/27ddedae9e9bfff04124fe7045b2e198 to your computer and use it in GitHub Desktop.
Save jack2jm/27ddedae9e9bfff04124fe7045b2e198 to your computer and use it in GitHub Desktop.
This will help you to change any running php version into ubuntu.
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