I
I
inFureal2020-07-11 17:58:31
Apache HTTP Server
inFureal, 2020-07-11 17:58:31

What causes an error when starting Certbot?

On startup, the
# sudo certbot --apache -d <тут мой домен>
following message is displayed

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for <тут мой домен>
Error while running a2enmod rewrite.

env: error while loading shared libraries: LIBC_2.4: cannot open shared object file: No such file or directory
Could not read /etc/apache2/envvars

Cleaning up challenges
Error while running a2dismod -f rewrite.

env: error while loading shared libraries: LIBC_2.4: cannot open shared object file: No such file or directory
Could not read /etc/apache2/envvars

Unable to run undo command: a2dismod -f rewrite
Error while running a2enmod rewrite.

env: error while loading shared libraries: LIBC_2.4: cannot open shared object file: No such file or directory
Could not read /etc/apache2/envvars

What could be wrong? Superadmin account, /etc/apache2/envvars file is

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ronald McDonald, 2020-07-11
@Zoominger

They write to you:

env: error while loading shared libraries: LIBC_2.4: cannot open shared object file: No such file or directory
Could not read /etc/apache2/envvars

Make sure that the file is there (maybe something was not installed).

V
Viktor Taran, 2020-07-13
@shambler81

certbot certonly --webroot -w /var/www/example -d www.example.com -d example.com

Where do you think he should put the file for verification?
https://certbot.eff.org/docs/using.html
-w - required parameter
Also, in order not to waste attempts, add the key
--dry-run
After debugging everything, delete it.
there is still,
--debug but I didn’t check, there was always enough inf without it, but it is there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question