dnf install https://rpms.remirepo.net/fedora/remi-release-36.rpm
yum install php82-php-fpm
yum install php82-php
yum install php82-php-mysqlnd
yum install php82-php-gd
yum install php82-php-imagick
cd /etc/opt/remi/php82/
Check:
ls -l /var/opt/remi/php82/run/php-fpm/www.sock
Edit:
vi /etc/opt/remi/php82/php-fpm.d/www.conf
change:
user = nginx
group = nginx
listen.owner = nginx
listen.group = nginx
listen.mode = 0660
service php82-php-fpm start
service php82-php-fpm stop
service php82-php-fpm start
service php82-php-fpm restart
php-fpm.d/www.conf
chown nginx /var/opt/remi/php82/run/php-fpm/www.sock
see also /lib/systemd/system/php82-php-fpm.service