Welcome! Log In Create A New Profile

Advanced

How do I set up nginx on Devuan?

Posted by walterbyrd 
How do I set up nginx on Devuan?
August 19, 2020 11:28AM
Devuan is Debian with systemd.

I have tried to follow instructions about installing nginx, which I have found online. But I cannot get it to work. It won't even start. It will not reload config files. I am installing on a local PC, no virtual box or anything.

Although I am not using a raspberry pi, I tried following these instructions:

https://www.raspberrypi.org/documentation/remote-access/web-server/nginx.md

Since it seemed to have instructions for non-systemd debian.

Actually there does not seem to be that much difference between systemd and old debian for this.

But I cannot seem to get nginx working.

# /etc/init.d/nginx start
[FAIL] Starting nginx: nginx failed!

# cat /var/log/nginx/error.log
2020/08/19 05:02:31 [emerg] 1731#1731: listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
2020/08/19 05:02:31 [emerg] 1731#1731: listen() to [::]:80, backlog 511 failed (98: Address already in use)
2020/08/19 05:02:31 [emerg] 1731#1731: listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
2020/08/19 05:02:31 [emerg] 1731#1731: listen() to [::]:80, backlog 511 failed (98: Address already in use)
2020/08/19 05:02:31 [emerg] 1731#1731: listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
2020/08/19 05:02:31 [emerg] 1731#1731: listen() to [::]:80, backlog 511 failed (98: Address already in use)
2020/08/19 05:02:31 [emerg] 1731#1731: listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
2020/08/19 05:02:31 [emerg] 1731#1731: listen() to [::]:80, backlog 511 failed (98: Address already in use)
2020/08/19 05:02:31 [emerg] 1731#1731: listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
2020/08/19 05:02:31 [emerg] 1731#1731: listen() to [::]:80, backlog 511 failed (98: Address already in use)
2020/08/19 05:02:31 [emerg] 1731#1731: still could not bind()
2020/08/19 08:11:25 [emerg] 9843#9843: listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
2020/08/19 08:11:25 [emerg] 9843#9843: listen() to [::]:80, backlog 511 failed (98: Address already in use)
2020/08/19 08:11:25 [emerg] 9843#9843: listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
2020/08/19 08:11:25 [emerg] 9843#9843: listen() to [::]:80, backlog 511 failed (98: Address already in use)
2020/08/19 08:11:25 [emerg] 9843#9843: listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
2020/08/19 08:11:25 [emerg] 9843#9843: listen() to [::]:80, backlog 511 failed (98: Address already in use)
2020/08/19 08:11:25 [emerg] 9843#9843: listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
2020/08/19 08:11:25 [emerg] 9843#9843: listen() to [::]:80, backlog 511 failed (98: Address already in use)
2020/08/19 08:11:25 [emerg] 9843#9843: listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
2020/08/19 08:11:25 [emerg] 9843#9843: listen() to [::]:80, backlog 511 failed (98: Address already in use)
2020/08/19 08:11:25 [emerg] 9843#9843: still could not bind()
2020/08/19 08:26:43 [emerg] 10160#10160: a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/default:22
2020/08/19 08:41:44 [emerg] 10569#10569: a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/default:22
2020/08/19 08:42:51 [emerg] 10826#10826: a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/default:22
2020/08/19 08:49:33 [emerg] 10954#10954: a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/default:22
Re: How do I set up nginx on Devuan?
August 21, 2020 03:51PM
I got it.

I had to uncomment these lines in sites-endabled/default

listen 80 default_server;
listen [::]:80 default_server;

Also had to edit fastcgi-php.conf, to reference fastcgi_params.

And had to down a fastcgi_params file.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 62
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