I need to install a custum aplication on a VPS CentOS 7.9, but I'm receiving those errors:

For some reason, I can't install mod_ssl (it's not excluded on yum.conf).

How can I solve that? I believe that cPanel/WHM has a particular version of CentOS, so I just need to be more close to the default version.
The second error: I believe that I need to remove the standard HostGator firewall to solve that. But I think it's a lot risky, right? There's some recommendations to do that securely?
ps.: It's ok to me don't use the standard apache configurations of cPanel. I really need just to install this custom app, not a site.

For some reason, I can't install mod_ssl (it's not excluded on yum.conf).

How can I solve that? I believe that cPanel/WHM has a particular version of CentOS, so I just need to be more close to the default version.
The second error: I believe that I need to remove the standard HostGator firewall to solve that. But I think it's a lot risky, right? There's some recommendations to do that securely?
ps.: It's ok to me don't use the standard apache configurations of cPanel. I really need just to install this custom app, not a site.