Perfect SErver NGINX on Ubuntu 15.04 giving Bind errors

Discussion in 'HOWTO-Related Questions' started by Judequinn, Oct 8, 2015.

  1. Judequinn

    Judequinn New Member

    Hi,

    I've installed the perfect server setup with ISPconfig 3 and Nginx on Ubuntu 15.04.

    I see these messages:

    Code:
    nginx: [emerg] bind() to 0.0.0.0:8081 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:8080 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:8081 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:8080 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:8081 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:8080 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:8081 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:8080 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:8081 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:8080 failed (98: Address already in use)
    nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    
    When I run netstat I get

    Code:
    tcp  0  0 0.0.0.0:80  0.0.0.0:*  LISTEN  1592/nginx -g daemo
    tcp  0  0 0.0.0.0:8080  0.0.0.0:*  LISTEN  1592/nginx -g daemo
    tcp  0  0 0.0.0.0:8081  0.0.0.0:*  LISTEN  1592/nginx -g daemo
    
    Any idea of what's causing it?

    Thanks in advance
     
  2. This could be caused because you may have a nginx configuration that is listening on port 80 and also on port [::]:80.
    Which VHOSTs are you currently using? If you have a VHOSt with for example this inside:
    Code:
    listen 80;
    listen [::]:80 default_server;
    Then it will cause your error, change it into this:
    Code:
    listen 80;
    listen [::]:80 ipv6only=on default_server;
     

Share This Page