New installs should be using AlmaLinux 8.x or Rocky Linux 8.x as a suggestion.
For some reason it seems like some of the CentOS 7 files are missing or depreciated, and hence causing problem on new installs not using images.
CentOS 7.x is EOL in June 2024.
But with what RedHat has been doing lately, I wouldn't really even count on that.
Also if you have Mod Security enabled, try changing it from OWASP to Comodo WAF.