https://docs.faveohelpdesk.com/docs/installation/providers/enterprise/php-upgrade/
In CentOS 8 stream and Rocky 8 machines, we can simply upgrade from a lower version of PHP to a Higher one by switching the Repository. Run the below command to disable PHP 7.3 and enable PHP 8.1 Remi