Topic: How to set apache to use php81 in RHEL 7 or CentOS 7
Our RHEL 7.9 has remi PHP 7.4 (php-7.4.28-1.el7.remi.x86_64).
Now we have installed remi php 8.1 (php81-php-cli-8.1.4-1.el7.remi.x86_64). Is there a way in RHEL 7 so that I can switch between php-7.4.28-1.el7.remi.x86_64 and php81-8.1-1.el7.remi.x86_64 to use them in apache? We use mod_php, not use php-fpm.
We don't want to use both versions simultaneously. We just want to use only one version in one time, and another version in other time.
Thanks.