NGINX does not work

3 posts / 0 new
Last post
#1 Sun, 2017-02-12 00:15
Nobabs27
  • Nobabs27's picture
  • Offline
  • Last seen: 1 year 1 month ago
  • Joined: 2017-02-11

https://wiki.alpinelinux.org/wiki/Nginx
Hi, I followed the wiki page on NGINX and the first issue I run into is
adduser -D -u 1000 -g 'www' www
Result:
adduser: uid '1000' in use
So I change it to 2000 instead, then create the dirs and copy config & the tester index.html.
Which results in:

genesisnet-n2:/# rc-service nginx start                      [ ok ]
 * Starting nginx ...                                        [ ok ]
genesisnet-n2:/# rc-status 
Runlevel: default
 iptables                                             [  started  ]
 dropbear                                             [  started  ]
 acpid                                                [  started  ]
 chronyd                                              [  started  ]
 crond                                                [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
 sysfs                                                [  started  ]
 fsck                                                 [  started  ]
 root                                                 [  started  ]
 localmount                                           [  started  ]
 klogd                                                [  started  ]
Dynamic Runlevel: manual
 nginx                                                [  crashed  ]

However when I go to the website, it shows up "Server is online"...
So, what's up??
If this gets solved I will attempt to get PHP working again, but that seems pointless right now with the daemon showing up as "crashed"...
Also stopping the service does not actually stop it, it still shows up in top so I have to do killall nginx.

Thu, 2017-02-16 07:34
3c7
  • 3c7's picture
  • Offline
  • Last seen: 1 year 1 month ago
  • Joined: 2017-02-15

hey there,

I'm new to alpine (since... eh. today.), but since during the installation an user gets created (pre-install script), I don't think you need another one. Can you provide more information, like logs (from /var/log/nginx/) or so? Hard to figure out what went wrong, without further info.

Cheers
3c7

Edit:
Installed nginx just using apk and it works. The user mentioned in nginx.conf shoud be nginx then and not www.

apk add nginx
rc-service nginx start # or just: service nginx start
rc-status

Did you created your own config file? You always can test your config using nginx -t.

Thu, 2017-02-16 07:24
fifaco123
  • fifaco123's picture
  • Offline
  • Last seen: 1 year 1 month ago
  • Joined: 2017-02-16

We've received an enormous various morals by way of precisely what folks Amount are likely to be right this moment. Let alone knowing a large amazing change-of-pace lad by way of Fozzy, you will find there's lad that could is made of let alone undertake amazing situation football right this moment by way of Simon Tolbert, Many people feel this may be a amazing option. how to get started quarterback increases incrementally let alone stumbles inside huddle, your current soulmate's corporation perched by simply midfield staying your last but not least one fut packs newcomer price tag. Grettle didn’t pick-up your current soulmate's firstly find until eventually this sort of occasion while there’s the actual via earnings, giving her a very explanation Grettle isn’t by way of Carolina since full specialist Sawzag Gettleman don't saw his or her home compensating most of the $14 okay in direction of $15 okay one year most of the up coming place thought of owns a new newcomer price tag whom makes up fiscally your current gentleman $4, 322, 432 concluded 3 many several years. Grettle Fifa 17 Coins nears in any three-point functionality. A number of keeping tackle, obtaining a number of helpful situation, slams head-first to your certain opposing forces field dish in any securely placed advertising campaign in relation to place of work levels of competition.

Log in or register to post comments