[root@soge ~]# certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Which names would you like to activate HTTPS for?
1: soge.iu-data.fr
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Requesting a certificate for soge.iu-data.fr
Performing the following challenges:
http-01 challenge for soge.iu-data.fr
Waiting for verification...
Challenge failed for domain soge.iu-data.fr
http-01 challenge for soge.iu-data.fr
Cleaning up challenges
Error while running apachectl graceful.
Job for httpd.service invalid.
Unable to restart apache using ['apachectl', 'graceful']
Error while running apachectl restart.
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
Encountered exception during recovery: MisconfigurationError: Error while running apachectl restart.
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
Some challenges have failed.
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: soge.iu-data.fr
Type: connection
Detail: 16.16.53.216: Fetching
http://soge.iu-data.fr/.well-known/acme-challenge/IS3WhLsGQdRLEwlA56GX9dD77_gbOvUMMUZGwGa81xo:
Connection refused
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you're using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
[root@soge ~]#
===================================
[root@soge ~]# systemctl restart httpd
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
===================================
[root@soge ~]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2024-09-18 10:59:11 CEST; 7s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 2371 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
Process: 2422 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 2422 (code=exited, status=1/FAILURE)
Sep 18 10:59:11 soge systemd[1]: Starting The Apache HTTP Server...
Sep 18 10:59:11 soge httpd[2422]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::400:5eff:fe8a:b9ff. Set the 'ServerName' direc...s this message
Sep 18 10:59:11 soge systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Sep 18 10:59:11 soge systemd[1]: Failed to start The Apache HTTP Server.
Sep 18 10:59:11 soge systemd[1]: Unit httpd.service entered failed state.
Sep 18 10:59:11 soge systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
===================================
[root@soge ~]# journalctl -xe
Sep 18 10:58:47 soge systemd[1]: Stopped The Apache HTTP Server.
-- Subject: Unit httpd.service has finished shutting down
-- Defined-By: systemd
-- Support: systemd-devel Info Page
--
-- Unit httpd.service has finished shutting down.
Sep 18 10:58:47 soge systemd[1]: Unit httpd.service entered failed state.
Sep 18 10:58:47 soge systemd[1]: httpd.service failed.
Sep 18 10:58:47 soge systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: systemd-devel Info Page
--
-- Unit httpd.service has begun starting up.
Sep 18 10:58:48 soge httpd[2410]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::400:5eff:fe8a:b9ff. Set the 'ServerName' directive globally to
Sep 18 10:58:48 soge systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Sep 18 10:58:48 soge systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: systemd-devel Info Page
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Sep 18 10:58:48 soge systemd[1]: Unit httpd.service entered failed state.
Sep 18 10:58:48 soge systemd[1]: httpd.service failed.
Sep 18 10:58:48 soge polkitd[508]: Unregistered Authentication Agent for unix-process:2389:570652 (system bus name :1.48, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale C) (di
Sep 18 10:59:11 soge polkitd[508]: Registered Authentication Agent for unix-process:2416:574946 (system bus name :1.49 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/
Sep 18 10:59:11 soge systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: systemd-devel Info Page
--
-- Unit httpd.service has begun starting up.
Sep 18 10:59:11 soge httpd[2422]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::400:5eff:fe8a:b9ff. Set the 'ServerName' directive globally to
Sep 18 10:59:11 soge systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Sep 18 10:59:11 soge systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: systemd-devel Info Page
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Sep 18 10:59:11 soge systemd[1]: Unit httpd.service entered failed state.
Sep 18 10:59:11 soge systemd[1]: httpd.service failed.
Sep 18 10:59:11 soge polkitd[508]: Unregistered Authentication Agent for unix-process:2416:574946 (system bus name :1.49, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.
[root@soge ~]#