My goal is to get SSL running on my server to run over HTTPS. I'm trying to run the command sudo certbot --apache
to generate a certificate for my server as part of these steps https://certbot.eff.org/lets-encrypt/ubuntutrusty-apache.
I'm having issues with this, as when I run the command I get the error
Error while running apache2ctl graceful.
httpd not running, trying to start
Action 'graceful' failed.
Address already in use: AH00072: make_sock: could not bind to address [::]:80
When I check what is running on port 80, I see httpd.bin.
tcp6 0 0 :::80 :::* LISTEN 1372/httpd.bin
But httpd.bin is said to not be running in the error message above. I have tried to kill the process running on port 80, but have been unable to. I've also tried to locate the PID of the Apache parent process (http://www.informit.com/articles/article.aspx?p=26130&seqNum=3) however, I do not have /acpache directory in usr/local.
How should I proceed with killing the process? - Should I be focusing on killing this process, or is there another way around this issue?
The other confusing thing is that when I run sudo service apache2 status the result is apache2 is not running but I cannot start this process either as port 80 is in use (not sure if Apache2 is required in my scenario.)
Any help would be greatly appreciated!