Welcome! Log In Create A New Profile

Advanced

Re: FreeBSD Clean Install nginx.pid Permissions Errors

nanaya
July 15, 2017 05:06AM
Hi,

On Sat, Jul 15, 2017, at 17:47, Viaduct Lists wrote:
> The latter. It makes little sense. If it’s ignored then there’s no
> sense in having it.
>

It works if you start it from user with root privilege. Otherwise you
can't switch user and thus the directive is ignored.

> Much like how the current `nginx -t` report makes little sense as well:
>
> nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is
> ok
> nginx: [emerg] open() "/var/run/nginx.pid" failed (13: Permission denied)
> nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed
>
> This basically says “config file is fine. I can’t read the pid file,
> even though I’ve been given permission to. the config file failed."
>

open() is more than just read. nginx needs to write to it as well and it
can't do it because your user doesn't have permission to. And thus using
the specified config will fail.

The config is syntactically okay but not actually usable.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

FreeBSD Clean Install nginx.pid Permissions Errors

Viaduct Lists July 13, 2017 09:38AM

Re: FreeBSD Clean Install nginx.pid Permissions Errors

Francis Daly July 13, 2017 06:48PM

Re: FreeBSD Clean Install nginx.pid Permissions Errors

Viaduct Lists July 13, 2017 07:00PM

Re: FreeBSD Clean Install nginx.pid Permissions Errors

Francis Daly July 14, 2017 09:30AM

Re: FreeBSD Clean Install nginx.pid Permissions Errors

Viaduct Lists July 14, 2017 10:42AM

Re: FreeBSD Clean Install nginx.pid Permissions Errors

Francis Daly July 14, 2017 11:00PM

Re: FreeBSD Clean Install nginx.pid Permissions Errors

Viaduct Lists July 15, 2017 04:48AM

Re: FreeBSD Clean Install nginx.pid Permissions Errors

nanaya July 15, 2017 05:06AM

Re: FreeBSD Clean Install nginx.pid Permissions Errors

Viaduct Lists July 15, 2017 05:58AM

Re: FreeBSD Clean Install nginx.pid Permissions Errors

nanaya July 15, 2017 06:26AM

Re: FreeBSD Clean Install nginx.pid Permissions Errors

Viaduct Lists July 15, 2017 11:46AM

Re: FreeBSD Clean Install nginx.pid Permissions Errors

nanaya July 15, 2017 12:10PM

Re: FreeBSD Clean Install nginx.pid Permissions Errors

gariac July 13, 2017 09:32PM

Re: FreeBSD Clean Install nginx.pid Permissions Errors

Viaduct Lists July 14, 2017 10:40AM

Re: FreeBSD Clean Install nginx.pid Permissions Errors

Jim Ohlstein July 14, 2017 11:00AM

Re: FreeBSD Clean Install nginx.pid Permissions Errors

Alberto Castillo July 14, 2017 11:06AM

Re: FreeBSD Clean Install nginx.pid Permissions Errors

gariac July 14, 2017 11:52AM

Re: FreeBSD Clean Install nginx.pid Permissions Errors

Alberto Castillo July 14, 2017 12:50PM

Re: FreeBSD Clean Install nginx.pid Permissions Errors

gariac July 14, 2017 04:24PM

Re: FreeBSD Clean Install nginx.pid Permissions Errors

Viaduct Lists July 14, 2017 01:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 285
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready