Problem install certbot in server

I installed certbot with this with this configuration ( on my server and it gives the following error:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Certbot doesn’t know how to automatically configure the web server on this system. However, it can still get a certificate for you. Please run “certbot-auto certonly” to do so. You’ll need to manually configure your web server to use the resulting certificate.

In the letsencrypt.log file it says:

File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot_apache/”, line 189, in prepare
File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot_apache/”, line 46, in init
self.loc = {“root”: self._find_config_root()}
File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot_apache/”, line 619, in _find_config_root
raise errors.NoInstallationError(“Could not find configuration root”)

What I can do?
Thanks in advance

Hi @pabl_guti, do you have an Apache web server installed on your system? What version of Apache, and how did you originally install Apache? Are there Apache configuration files inside of /etc/apache2 there?

Thanks for the help.
My VPS server has installed Apache version 2.4.25, Is installed from the beginning.

Indide of /etc/apache2 are the folders: bin, conf, conf.d, conf.modules.d, logs@, modules@, run@

@bmw, do you have any thoughts on what could be going wrong here?

I do! The version of Apache available in CentOS 6’s official repositories is 2.2.15 and its configuration directory is /etc/httpd. What’s going on here is Cerbot is recognizing your Linux distro and expecting things to be set up according to the normal conventions of that distro. Since these conventions aren’t being followed here, Certbot gets confused, says it can’t find your Apache installation, and exits.

You can work around the problem with command line arguments to Certbot. A full list of relevant flags can be shown by running ./certbot-auto --help apache. At the very least, you’ll need to include --apache-server-root /etc/apache2 on the command line.

Also, if you don’t mind me asking, what VPS provider are you using? You said Apache has been installed from the beginning and I’m curious which VPS provider is setting things up this way.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.