SliTaz SliTaz Forum

You are not logged in.

#1 2013-07-02 15:22:22

jared19
Member
Registered: 2013-02-21
Posts: 17

nginx won't start

Hi,

I'm trying to install/setup nginx in SliTaz 4.0. After installing it with tazpkg, it won't start complaining the following:

[emerg]: getpwnam("80") failed

why is this happening? I stopped BusyBox httpd prior to starting nginx with

/etc/init.d/httpd stop

and verify with midori that no web server is running (browsing to localhost yield an error).

Thanks

Offline

#2 2013-07-02 17:37:16

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: nginx won't start

Nginx can't find user www:x:80 in nginx.conf

[c]# leafpad /etc/nginx/nginx.conf[/c]

Change

[c]#user nobody;[/c]

to

[c]user  www;[/c]

File/Save/File/Quit leafpad

Make this directory:

[c]# mkdir -p /var/spool/nginx[/c]

[c]# /etc/init.d/nginx start[/c]

Go to http://localhost in browser to verify nginx is up

Offline

#3 2013-07-02 20:42:23

jared19
Member
Registered: 2013-02-21
Posts: 17

Re: nginx won't start

Thanks, that solved the problem.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]