Can't install Nextcloud with nginx : [emerg] bind() to failed (98: Address already in use)

Hi, I can’t seem to make Nextcloud work on my server. I’m using Nginx, and when I try to start the service, I get this error :

[emerg] bind() to failed (98: Address already in use)

I’m using a dedicated .conf file for every site I use. I’m also running a seedbox on this server. Both of them got this in their .conf :

server {
listen 80;
listen [::]:80;
server_name; # which I obviously replace with my correct domain

Enforce HTTPS

return 301 https://$server_name$request_uri;

Does anyone have an idea ?

Thanks by advance !

  • change one server to 8080
  • configure nginx to use multiple domain names.
  • check which process is already using port 80 ( sudo netstat -tulpn | grep 80 )