Strategic Framework for Upgrading Matomo 3.10.0 to Latest Iteration within RHEL8 and PHP 7.4 Context

I am currently operating Matomo (or Piwik, which is essentially synonymous) in its 3.10.0 iteration, coupled with MariaDB version 5.5.68 and PHP 7.0 on a RHEL7 environment. I seek guidance on the procedural steps required to upgrade to the latest Matomo version, specifically within a RHEL8 framework utilizing PHP 7.4.

Regrettably, the one-click upgrade feature has proven ineffective for my installation, and manual attempts to overwrite the existing Matomo files with the newer iterations have not yielded successful results. Thus, I am in search of a comprehensive and methodical approach to facilitate this upgrade, ensuring compatibility and optimal functionality in the updated environment.