fresh nginx install won't start: lacks permission to bind to port 80
August 12, 2019 05:47PM
This is a new one on me after maybe a dozen or so NGINX installs on Ubuntu 18.04. This happened on a Windows 10 machine using the Windows Subsystem for Linux, running Ubuntu 18.04 freshly installed. Nothing else has been installed.

Here's what I get:

doctor@Lenovo-Ideapad2:~$ sudo service nginx start
nginx: [emerg] bind() to failed (13: Permission denied)
doctor@Lenovo-Ideapad2:~$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] bind() to failed (13: Permission denied)
nginx: configuration file /etc/nginx/nginx.conf test failed

In Windows right after this happened I checked Port 80:

C:\WINDOWS\system32>netstat -aon | findstr :80
TCP [::]:80 [::]:0 LISTENING 4
TCP [2604:6000:1513:49d4:75ef:2fb6:7dba:daaf]:52472 [2001:4998:60:800::1105]:443 ESTABLISHED 13304

Why is this happening?

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 76
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready