FreeBSD Clean Install nginx.pid Permissions Errors

Viaduct Lists lists at viaduct-productions.com
Thu Jul 13 22:58:02 UTC 2017


Hi there.  Thanks for the reply.

Persistent permissions issues are on other boxes, on OSX as well.  But I had some Passenger issues so I’ve moved into another issue.

But sudo nginx -t gets rid of the error on nginx.pid

That whole user/group issue on the user directive in nginx.conf is confusing as it ignores any attempt at using user root;.  

So it has no user.  The install has user nobody; but that isn’t used, so the user is www. 



> On Jul 13, 2017, at 6:46 PM, Francis Daly <francis at daoine.org> wrote:
> 
> Hi there,
> 
>> [Wed Jul 12 06:08:41 rich at neb /var/log/nginx] nginx -t
> 
> If you were running this command as "root", would that prompt say
> "root at neb" and end with a # ?
> 
>> nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
>> nginx: [emerg] open() "/var/run/nginx.pid" failed (13: Permission denied)
> 
> That might relate to permissions on /, /var, or /var/run, instead of
> on /var/run/nginx.pid.
> 
> But still: from what you've shown, there is no indication that user
> "rich" has the necessary permissions.
> 
> Good luck with it,


_____________
Rich in Toronto @ VP








More information about the nginx mailing list