I am attempting to use certbot to add SSL encryption to my wiki js installation. My droplet is on and I am logged into the remote shell. After running: ‘certbot certonly --standalone’ and entering my domains, I get this error:
Could not bind TCP port 80 because it is already in use by another process on this system (such as a web server). Please stop the program in question and then try again.
The activity monitor (on my mac) is not showing any processes on port 80.
I had nginx installed (on my mac), but uninstalled it using brew (not using it)
I use pm2 (on my mac)to start up a local node.js server, but all stopped these processes
I am not sure what process might be blocking port 80.
Further, I am not sure if the warning is about some process in my droplet using port 80 or my MacBook??? When I list active ports in my droplet, I see two instances of ‘docker-pr’ listening on port 80. Could this be an issue?
Following the certbot documentation, I tried using --webroot instead of --standalone (‘certbot certonly --webroot’). The issue here so far is that I don’t know how to specify the webroot location. I’ve dug through the directories but don’t see where this path is.
My confusion is that I am supposing the droplet server is using port 80. I need to be logged in to the server to run certbot. I can’t run certbort if my droplet is off.
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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.