php-cli and php-fpm are completely separate. If you install php in Ubuntu, you get both. But you don't have to. If you've done anything different then you definitely can't rely on 'php -v' at the command line to tell you what version of PHP you are running. You need to look at PHP Info within your Moodle site (or create a test script).
I'm not a fan of upgrading Ubuntu server. I always recommend creating a new instance from scratch and reloading your site from a backup. It's usually quicker and more reliable in the end. As you might be finding out.
I'm not a fan of upgrading Ubuntu server. I always recommend creating a new instance from scratch and reloading your site from a backup. It's usually quicker and more reliable in the end. As you might be finding out.