Problems installing Certbot on Centos 7

I need help when I try to install certbot on my apache server with centos 7, when executing this code: yum install certbot certbot-apache mod_ssl -y
I get an error and I don’t know why it is installed.

Finished Dependency Resolution
Error: Package: python2-certbot-apache-1.0.0-1.el7.noarch (epel)
Requires: mod_ssl
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

how can i repair this and get the installation??

1 Like

What happens if you try to just install mod_ssl on its own? I think that should reveal the underlying reason for the conflict.

yum install mod_ssl
1 Like

When executing the # yum install mod_ssl I get this result

[root@server12 ~]# yum install mod_ssl
Loaded plugins: fastestmirror, langpacks, universal-hooks
Loading mirror speeds from cached hostfile

1 Like

Ah, this is a cPanel server?

You cannot install the Certbot Apache plugin on it.

cPanel takes over the packaging for your server, so mod_ssl comes as a part of EasyApache4 (in a differently named package = ea-apache24-mod_ssl).

In general, you should not use Certbot on cPanel at all. cPanel manages its Apache configuration in a very special way, that Certbot is not aware of. certbot --apache will screw up your cPanel server - and any changes performed by Certbot will be reverted anyway by cPanel.

You should just use cPanel AutoSSL - https://blog.cpanel.com/autossl/ . It automatically installs certificates for you without having to mess around with any extra software or plugins.

1 Like

Only by executing this code:
/scripts/install_lets_encrypt_autossl_provider

the installation successfully resolved

2 Likes