jawj / IKEv2-setup

Set up Ubuntu Server 20.04 (or 18.04) as an IKEv2 VPN server
1.35k stars 338 forks source link

Problem binding to port 80: Could not bind to IPv4 or IPv6 #95

Closed JerryBian closed 4 years ago

JerryBian commented 5 years ago

While run the setup script, it shows failure, can you explain or guide how to fix this issue?

--- Configuring RSA certificates ---

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Running pre-hook command: /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for vpn.xxx.xx
Cleaning up challenges
Running post-hook command: /sbin/iptables -D INPUT -p tcp --dport 80 -j ACCEPT
Problem binding to port 80: Could not bind to IPv4 or IPv6.
as1414 commented 5 years ago

same

as1414 commented 5 years ago

Looks like this helped me get through this error...

Apache is already installed and running on the machine: https://community.letsencrypt.org/t/problem-binding-to-port-80-could-not-bind-to-ipv4-or-ipv6/77033/7

First, double check like this: https://www.tecmint.com/check-apache-httpd-status-and-uptime-in-linux/

Remove if needed: http://xmodulo.com/how-to-uninstall-and-remove-apache2-on-ubuntu-debian.html

Re-run the script - this worked for me. I'm not a Linux/Ubuntu expert so please excuse the lack of information in this comment/answer

jawj commented 4 years ago

Right, this script expects a freshly installed Ubuntu with no extra services running, including nothing bound to port 80. @as1414's advice looks good to me.