You should use PHP-FPM on contemporary RHEL 8 and 9 systems. if you really need FCGId mode you should use Ubuntu 22.04 or Debian 11.