I recently upgraded PHP 7.1 to 7.4 on an Ubuntu Server and recorded the entire process. Below are the commands used in this video. Thanks for watching.
1. sudo add-apt-repository ppa:ondrej/php
2. sudo apt update
3. sudo apt install php7.4
4. sudo apt install $(apt list --installed | grep php7.1 | cut -d'/' -f1 | sed -e 's/7.1/7.4/g')
5. sudo a2enmod proxy_fcgi setenvif
6. sudo a2enconf php7.4-fpm
7. cd /etc/alternatives/
8. sudo rm php
9. sudo ln -s /usr/bin/php7.4 php
10. php --version
► Social Media
/ coder4_life
https://github.com/another-coder4life
/ coder4.life.code