JerbyYT
You probably have an Apache config that is pointing to a specific version of PHP. You most likely need to update that config to point to PHP 8.0 and then restart Apache.
I don’t know what distro of Linux you are running but you should be able to do a quick search on how to change the PHP version for Apache on your distro.
Cheers.