There was a guide on the forums on how to install PHP 7.4, PHP 8.0 on the latest Ubuntu. The guide is actual for AlmaLinux 9. I don't have the link, so it is up to you to find it.
If you don't want to go in to it, then you might switch to Almalinux 8.7 as suggested by the user "Active8", or hire us for this job.