OwnCloud upgrade issue PHP8.0 problem

After Fedora upgrade to 35 from 33 faced issue under OwnCloud

Can not run OC 10.xxx under php 8.0.xx

Resolved the issue with following steps

Following was already there under /etc/httpd/conf.d/owncloud.conf



# Enable http authorization headers
SetEnvIfNoCase ^Authorization$ “(.+)” HTTP_AUTHORIZATION=$1

<FilesMatch \.(php|phar)$>
    SetHandler "proxy:unix:/var/opt/remi/php74/run/php-fpm/www.sock|fcgi://localhost"
</FilesMatch>

while doing console upgrade using
occ upgrade
problem arises as default php was 8.0

First renamed /usr/bin/php to /usr/bin/php80
then run following command
update-alternatives –install /usr/bin/php php /opt/remi/php74/root/usr/bin/php 74

next occ update was successful