Hello, I’m newbie and I’m trying to use letsencrypt on my site following this tutorial https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-16-04 but it gives the following error below. Can someone help me…
Error while running apache2ctl graceful. httpd not running, trying to start Action ‘graceful’ failed. The Apache error log may have more information.
AH00112: Warning: DocumentRoot [/var/lib/letsencrypt/tls_sni_01_page/] does not exist AH00112: Warning: DocumentRoot [/var/lib/letsencrypt/tls_sni_01_page/] does not exist AH00558: apache2: Could not reliably determine the server’s fully qualified doma in name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress th is message (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8 0 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0. 0:80 no listening sockets available, shutting down AH00015: Unable to open logs
Cleaning up challenges Error while running apache2ctl graceful. httpd not running, trying to start Action ‘graceful’ failed. The Apache error log may have more information.
AH00558: apache2: Could not reliably determine the server’s fully qualified doma in name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress th is message (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8 0 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0. 0:80 no listening sockets available, shutting down AH00015: Unable to open logs
Encountered exception during recovery Error while running apache2ctl graceful. httpd not running, trying to start Action ‘graceful’ failed. The Apache error log may have more information.
AH00558: apache2: Could not reliably determine the server’s fully qualified doma in name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress th is message (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8 0 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0. 0:80 no listening sockets available, shutting down AH00015: Unable to open logs Traceback (most recent call last): File “/usr/lib/python2.7/dist-packages/certbot/error_handler.py”, line 99, in _call_registered self.funcs-1 File “/usr/lib/python2.7/dist-packages/certbot/auth_handler.py”, line 284, in _cleanup_challenges self.auth.cleanup(achalls) File “/usr/lib/python2.7/dist-packages/certbot_apache/configurator.py”, line 1 908, in cleanup self.restart() File “/usr/lib/python2.7/dist-packages/certbot_apache/configurator.py”, line 1 797, in restart self._reload() File “/usr/lib/python2.7/dist-packages/certbot_apache/configurator.py”, line 1 808, in _reload raise errors.MisconfigurationError(str(err)) MisconfigurationError: Error while running apache2ctl graceful. httpd not running, trying to start Action ‘graceful’ failed. The Apache error log may have more information.
AH00558: apache2: Could not reliably determine the server’s fully qualified doma in name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress th is message (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8 0 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0. 0:80 no listening sockets available, shutting down AH00015: Unable to open logs
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Does it give the error, when you’re trying to run this command?
sudo certbot --apache -d yourdomain.com
Have you setup Apache already or are you trying to install Let’s Encrypt on a new installation?
Can you also run this command to list the services listening on the ports:
sudo lsof -iTCP -sTCP:LISTEN -P
I am facing the same issue with a Litespeed WordPress server. Your documentation is really poor. This is insane.
I am facing the same issue here. So I tried on the command you gave and this is what returned
bitnami@ip-172-31-34-42:~$ sudo lsof -iTCP -sTCP:LISTEN -P COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME sshd 1156 root 3u IPv4 14885 0t0 TCP *:22 (LISTEN) sshd 1156 root 4u IPv6 14887 0t0 TCP *:22 (LISTEN) mysqld.bi 3611 mysql 18u IPv4 19203 0t0 TCP localhost:3306 (LISTEN) httpd.bin 15708 daemon 4u IPv6 53753 0t0 TCP *:80 (LISTEN) httpd.bin 15708 daemon 6u IPv6 53763 0t0 TCP *:443 (LISTEN) httpd.bin 15709 daemon 4u IPv6 53753 0t0 TCP *:80 (LISTEN) httpd.bin 15709 daemon 6u IPv6 53763 0t0 TCP *:443 (LISTEN)
Would you please help me as well?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.