I tried to install on Debian 11, CentOS 7 and 8 but to no avail.
So I went to Ubuntu 22 and it wasn’t easy either, but in the installation process the script forces the installation of PHP 7.1 while the available version is 8. So I enabled the PHP 7.4 package on Ubuntu and changed the installation script to force installation of PHP 7.4.