Problem install on Red Hat 8.3

I installed Nextcloud 22 on 2 different RH 8.3 VM one with Nginx+php-fpm and the other with Apache+php-fpm. All configurations are ok. I add database info and the database has been created. But when I try to login I experience a loop with 303 redirect back to login page. No errors in log files and no error on screen.
I only receive this message in data/nextcloud.log that could be related to the problem:
session_regenerate_id(): Cannot regenerate session id - session is not active at /var/www/html/nextcloud/lib/private/Session/Internal.php#136